Guest User

Untitled

a guest
Dec 17th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. template<class T, T lhs, T rhs>
  2. struct Refl
  3. {
  4. Refl() = delete;
  5. Refl(const Refl<T, lhs, rhs>&) = delete;
  6. Refl<T, lhs, rhs>& operator=(const Refl<T, lhs, rhs>&) = delete;
  7. };
  8.  
  9. template<class T, T both>
  10. struct Refl<T, both, both>
  11. {
  12. };
  13.  
  14. static constexpr Refl<int, 1 + 1, 2> proof;
  15. // static constexpr Refl<int, 1 + 1, 3> dumb;
  16. // static constexpr Refl<int, 1 + 1, 3> dumber(dumber);
Add Comment
Please, Sign In to add comment