Line data Source code
1 : //
2 : // Author: Vladimir Migashko <migashko@gmail.com>, (C) 2012
3 : //
4 : // Copyright: See COPYING file that comes with this distribution
5 : //
6 :
7 : #ifndef VSET_VSET_BUFFER_PERSISTENT_FILE_AD_VALUE_HPP
8 : #define VSET_VSET_BUFFER_PERSISTENT_FILE_AD_VALUE_HPP
9 :
10 : #include <vset/buffer/tags.hpp>
11 : #include <vset/buffer/persistent/tags.hpp>
12 :
13 : namespace vset { namespace buffer { namespace persistent{ namespace file{
14 :
15 : template<typename TTg, typename Tg>
16 24 : struct ad_value
17 : {
18 : template<typename T>
19 : typename T::aspect::template advice_cast<TTg>::type
20 41364 : operator()( T& t ) const
21 : {
22 41364 : return t.get_aspect().template get<Tg>();
23 : }
24 : };
25 :
26 : }}}}
27 :
28 : #endif
|