Initialize static const multidimensional array with inferred dimensions inside class definition
constexpr is very useful for compile time programming.
the difference between with constexpr and without is that
we won't have symbols while using constexpr. Everything is done
in compile time.
No symbols, no linkage, no address of the symbol being taking possible.
constexpr is very useful for compile time programming.
the difference between with constexpr and without is that
we won't have symbols while using constexpr. Everything is done
in compile time.
No symbols, no linkage, no address of the symbol being taking possible.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.