12345678910111213141516171819202122232425262728 |
- #ifndef BOOST_CONTRACT_DETAIL_NONE_HPP_
- #define BOOST_CONTRACT_DETAIL_NONE_HPP_
- namespace boost { namespace contract { namespace detail {
- struct none {
-
- static none& value() {
- static none none_value;
- return none_value;
- }
- };
- template<typename T> struct none_if_void { typedef T type; };
- template<> struct none_if_void<void> { typedef none type; };
- } } }
- #endif
|