1 | // Copyright David Abrahams 2006. Distributed under the Boost |
2 | // 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 BOOST_DETAIL_POD_SINGLETON_DWA200655_HPP |
5 | # define BOOST_DETAIL_POD_SINGLETON_DWA200655_HPP |
6 | |
7 | namespace boost { namespace detail { |
8 | |
9 | template<typename T> |
10 | struct pod_singleton |
11 | { |
12 | static T instance; |
13 | }; |
14 | |
15 | template<typename T> |
16 | T pod_singleton<T>::instance; |
17 | |
18 | }} // namespace boost::detail |
19 | |
20 | #endif // BOOST_DETAIL_POD_SINGLETON_DWA200655_HPP |
21 | |