May 23, 2015

[C++11/14] Sane way of testing template specialization

Sane way of testing template specialization?


  1. static_assert
  2. temporarily = delete your T overload, so that if you're calling something, it must be the tuple overload.
  3. if constexpr
    ref: cppref if statement

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.