-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
necessary. Although constructing a matrix from a 2D-array variable invokes the interop constructor: ``` const float a[2][2] = {{1,0},{0,1}}; M22f m(a); ``` constructing a matrix from a 2D array *parameter* uses the array constructor, which #307 thought was never used, because it was never invoked by the test suite: ``` void foo (const float a[2][2]) { M22f m(a); } ``` This restores the constructors and adds a test. Signed-off-by: Cary Phillips <[email protected]>
- Loading branch information
Showing
2 changed files
with
59 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters