framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
interface.hpp
Go to the documentation of this file.
1 // Copyright (C) 2012 iwg molw5
2 // For conditions of distribution and use, see copyright notice in COPYING
3 
13 #pragma once
14 
16 
17 namespace framework
18 {
19  namespace serializable
20  {
26  template <typename Name, typename Object>
29  {
30  return static_cast <object_base <Object, Name>&> (t);
31  }
32 
38  template <typename Name, typename Object>
40  auto interface (Object const& t) -> object_base <Object, Name> const&
41  {
42  return static_cast <object_base <Object, Name> const&> (t);
43  }
44  }
45 }