• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*<-
2 Copyright (c) 2016 Barrett Adair
3 
4 Distributed under the Boost Software License, Version 1.0.
5 (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
6 ->*/
7 
8 //[ is_const_member
9 #include <type_traits>
10 #include <boost/callable_traits/is_const_member.hpp>
11 
12 namespace ct = boost::callable_traits;
13 
14 struct foo;
15 
16 static_assert(ct::is_const_member<int(foo::*)() const>::value, "");
17 static_assert(!ct::is_const_member<int(foo::*)()>::value, "");
18 
main()19 int main() {}
20 //]
21