yasmine
caller_helper.hpp
Go to the documentation of this file.
1 // //
3 // This file is part of the Seadex yasmine ecosystem (http://yasmine.seadex.de). //
4 // Copyright (C) 2016-2017 Seadex GmbH //
5 // //
6 // Licensing information is available in the folder "license" which is part of this distribution. //
7 // The same information is available on the www @ http://yasmine.seadex.de/Licenses.html. //
8 // //
10 
11 #ifndef CALLER_HELPER_F7FFB6C9_339F_471F_B7A1_C77902353FBA
12 #define CALLER_HELPER_F7FFB6C9_339F_471F_B7A1_C77902353FBA
13 
14 
15 #include "event_id.hpp"
16 
17 
18 namespace sxy
19 {
20 
21 #ifndef SX_CPP03_BOOST // C++11 only
22 
23 
24  template<typename C>
26  {
27  private:
28  template<typename T>
29  static constexpr auto check( T* ) -> typename
30  std::is_same< decltype( T::get_event_id() ), sxy::event_id >::type;
31 
32  template<typename>
33  static constexpr std::false_type check( ... );
34 
35  typedef decltype( check<C>( 0 ) ) type;
36 
37  public:
38  static constexpr bool value = type::value;
39  };
40 
41 
42 #endif
43 
44 }
45 
46 
47 #endif
static constexpr bool value
Definition: caller_helper.hpp:38
Definition: adapter_cpp11.hpp:21
Definition: caller_helper.hpp:25