forked from AcademySoftwareFoundation/Imath
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR AcademySoftwareFoundation#307 was incorrect, the array-based const…
…ructors are, in fact, (AcademySoftwareFoundation#309) 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 AcademySoftwareFoundation#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
60 additions
and
35 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