Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • I believe that you can't do that (and it is one of the limitations of C++14 metaprogramming machinery). But I don't know all of C++14. However std::tuple might be used instead. Commented Jan 6, 2017 at 4:25
  • 1
    stackoverflow.com/questions/5740310/… Commented Jan 6, 2017 at 4:26
  • This was discussed for C++17 but voted out again in the end if I'm informed correctly. Commented Jan 6, 2017 at 4:28
  • That is a bit confusing though, since the compiler generates a default copy constructor, why doesn't it logically assume that the default == is such that default-constructed-copy == original object... Commented Jan 6, 2017 at 4:33
  • Maybe this will help stackoverflow.com/q/217911/4224575 Commented Jan 6, 2017 at 15:44