Chris@16: // Boost.Range library concept checks Chris@16: // Chris@16: // Copyright Neil Groves 2009. Use, modification and distribution Chris@16: // are subject to the Boost Software License, Version 1.0. (See Chris@16: // accompanying file LICENSE_1_0.txt or copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt) Chris@16: // Chris@16: #ifndef BOOST_RANGE_DETAIL_MISC_CONCEPT_HPP_INCLUDED Chris@16: #define BOOST_RANGE_DETAIL_MISC_CONCEPT_HPP_INCLUDED Chris@16: Chris@16: #include Chris@16: Chris@16: namespace boost Chris@16: { Chris@16: namespace range_detail Chris@16: { Chris@16: template Chris@16: class SameTypeConcept Chris@16: { Chris@16: public: Chris@16: BOOST_CONCEPT_USAGE(SameTypeConcept) Chris@16: { Chris@16: same_type(a,b); Chris@16: } Chris@16: private: Chris@16: template void same_type(T,T) {} Chris@16: T1 a; Chris@16: T2 b; Chris@16: }; Chris@16: } Chris@16: } Chris@16: Chris@16: #endif // include guard