Jeff Thompson | 86b6d64 | 2013-10-17 15:01:56 -0700 | [diff] [blame^] | 1 | /* boost random/detail/generator_bits.hpp header file |
| 2 | * |
| 3 | * Copyright Steven Watanabe 2011 |
| 4 | * Distributed under the Boost Software License, Version 1.0. (See |
| 5 | * accompanying file LICENSE_1_0.txt or copy at |
| 6 | * http://www.boost.org/LICENSE_1_0.txt) |
| 7 | * |
| 8 | * See http://www.boost.org for most recent version including documentation. |
| 9 | * |
| 10 | * $Id: generator_bits.hpp 72951 2011-07-07 04:57:37Z steven_watanabe $ |
| 11 | * |
| 12 | */ |
| 13 | |
| 14 | #ifndef NDNBOOST_RANDOM_DETAIL_GENERATOR_BITS_HPP |
| 15 | #define NDNBOOST_RANDOM_DETAIL_GENERATOR_BITS_HPP |
| 16 | |
| 17 | #include <ndnboost/limits.hpp> |
| 18 | |
| 19 | namespace ndnboost { |
| 20 | namespace random { |
| 21 | namespace detail { |
| 22 | |
| 23 | // This is a temporary measure that retains backwards |
| 24 | // compatibility. |
| 25 | template<class URNG> |
| 26 | struct generator_bits { |
| 27 | static std::size_t value() { |
| 28 | return std::numeric_limits<typename URNG::result_type>::digits; |
| 29 | } |
| 30 | }; |
| 31 | |
| 32 | } // namespace detail |
| 33 | } // namespace random |
| 34 | } // namespace ndnboost |
| 35 | |
| 36 | #endif // NDNBOOST_RANDOM_DETAIL_GENERATOR_BITS_HPP |