1 // Boost string_algo library yes_no_type.hpp header file ---------------------------//
3 // Copyright Pavol Droba 2002-2003.
5 // Distributed under the Boost Software License, Version 1.0.
6 // (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
9 // See http://www.boost.org/ for updates, documentation, and revision history.
11 #ifndef BOOST_STRING_YES_NO_TYPE_DETAIL_HPP
12 #define BOOST_STRING_YES_NO_TYPE_DETAIL_HPP
17 // taken from boost mailing-list
18 // when yes_no_type will become officially
19 // a part of boost distribution, this header
21 template<int I> struct size_descriptor
23 typedef char (& type)[I];
26 typedef size_descriptor<1>::type yes_type;
27 typedef size_descriptor<2>::type no_type;
29 } // namespace algorithm
33 #endif // BOOST_STRING_YES_NO_TYPE_DETAIL_HPP