Skip to content

constexpr construction for Vec classes

Shreeraj Jadhav requested to merge (removed):Vec-constructors-constexpr into master

Vec class objects can now be constructed during compile-time as constant expressions by calling Vec( T, ... ) constructors. This is supported for Vec of sizes 1 to 4 including nested constructor calls such as Vec<Vec<int,2>2> a(Vec<int,2>(100,100),Vec<int,2>(200,200)); Appropriate unit tests have been added to UnitTestTypes.cxx. Addresses issue #199 (closed). Construction of constexpr Vec using fill constructors or Vec of sizes greater than 4 are not yet supported. @robertmaynard @sujin.philip

Edited by Shreeraj Jadhav

Merge request reports

Loading