vec_traits.hpp 701 B

1234567891011121314151617181920212223242526272829303132
  1. //Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc.
  2. //Distributed under the Boost Software License, Version 1.0. (See accompanying
  3. //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  4. #ifndef UUID_01224884FC4111DF9570F7E4DED72085
  5. #define UUID_01224884FC4111DF9570F7E4DED72085
  6. namespace
  7. boost
  8. {
  9. namespace
  10. qvm
  11. {
  12. template <class V>
  13. struct
  14. vec_traits
  15. {
  16. static int const dim=0;
  17. typedef void scalar_type;
  18. };
  19. template <class T>
  20. struct
  21. is_vec
  22. {
  23. static bool const value=vec_traits<T>::dim>0;
  24. };
  25. }
  26. }
  27. #endif