double_number.hpp 453 B

123456789101112131415161718
  1. #ifndef DOUBLE_NUMBER_HPP
  2. #define DOUBLE_NUMBER_HPP
  3. // Copyright Abel Sinkovics (abel@sinkovics.hu) 2012.
  4. // Distributed under the Boost Software License, Version 1.0.
  5. // (See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt)
  7. #include <boost/mpl/int.hpp>
  8. #include <boost/mpl/times.hpp>
  9. template <class N>
  10. struct double_number :
  11. boost::mpl::times<typename N::type, boost::mpl::int_<2> >
  12. {};
  13. #endif