Advertisement
Guest User

Untitled

a guest
Oct 25th, 2014
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. template<typename N>
  2. constexpr bool foo()
  3. {
  4. std::array<char, 10> arr;
  5. return true;
  6. }
  7.  
  8. constexpr bool foo()
  9. {
  10. std::array<char, 10> arr; // Non-constexpr constructor 'array' cannot be used in a constant expression
  11. return true;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement