blob: b50de381f5c7af296c2abcc4ef2cb2515b9fbfe1 [file] [log] [blame]
Jeff Thompsonef2d5a42013-08-22 19:09:24 -07001// Boost.Range library concept checks
2//
3// Copyright Neil Groves 2009. Use, modification and distribution
4// are subject to 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//
Jeff Thompson3d613fd2013-10-15 15:39:04 -07008#ifndef NDNBOOST_RANGE_DETAIL_MISC_CONCEPT_HPP_INCLUDED
9#define NDNBOOST_RANGE_DETAIL_MISC_CONCEPT_HPP_INCLUDED
Jeff Thompsonef2d5a42013-08-22 19:09:24 -070010
11#include <ndnboost/concept_check.hpp>
12
13namespace ndnboost
14{
15 namespace range_detail
16 {
17 template<typename T1, typename T2>
18 class SameTypeConcept
19 {
20 public:
Jeff Thompson3d613fd2013-10-15 15:39:04 -070021 NDNBOOST_CONCEPT_USAGE(SameTypeConcept)
Jeff Thompsonef2d5a42013-08-22 19:09:24 -070022 {
23 same_type(a,b);
24 }
25 private:
26 template<typename T> void same_type(T,T) {}
27 T1 a;
28 T2 b;
29 };
30 }
31}
32
33#endif // include guard