blob: 97f1d8dc47974cf384d6699bb9fe21c8f07753e8 [file] [log] [blame]
Jeff Thompsonef2d5a42013-08-22 19:09:24 -07001// Boost string_algo library yes_no_type.hpp header file ---------------------------//
2
3// Copyright Pavol Droba 2002-2003.
4//
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)
8
9// See http://www.boost.org/ for updates, documentation, and revision history.
10
Jeff Thompson3d613fd2013-10-15 15:39:04 -070011#ifndef NDNBOOST_STRING_YES_NO_TYPE_DETAIL_HPP
12#define NDNBOOST_STRING_YES_NO_TYPE_DETAIL_HPP
Jeff Thompsonef2d5a42013-08-22 19:09:24 -070013
14namespace ndnboost {
15 namespace algorithm {
16
17 // taken from boost mailing-list
18 // when yes_no_type will become officially
19 // a part of boost distribution, this header
20 // will be deprecated
21 template<int I> struct size_descriptor
22 {
23 typedef char (& type)[I];
24 };
25
26 typedef size_descriptor<1>::type yes_type;
27 typedef size_descriptor<2>::type no_type;
28
29 } // namespace algorithm
30} // namespace ndnboost
31
32
Jeff Thompson3d613fd2013-10-15 15:39:04 -070033#endif // NDNBOOST_STRING_YES_NO_TYPE_DETAIL_HPP