framework
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
framework
serializable
utility
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
15
#include <
framework/serializable/serializable.hpp
>
16
17
namespace
framework
18
{
19
namespace
serializable
20
{
26
template
<
typename
Name,
typename
Object>
27
FRAMEWORK_ALWAYS_INLINE
28
auto
interface
(Object& t) ->
object_base <Object, Name>
&
29
{
30
return
static_cast <
object_base <Object, Name>
&> (t);
31
}
32
38
template
<
typename
Name,
typename
Object>
39
FRAMEWORK_ALWAYS_INLINE
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
}
Generated on Wed Apr 10 2013 20:49:42 for framework by
1.8.3.1-20130402