MUQ  0.4.3
AnyWriter.h
Go to the documentation of this file.
1 #ifndef ANYWRITER_H
2 #define ANYWRITER_H
3 
4 #include <boost/any.hpp>
5 
6 namespace muq{
7 namespace Utilities{
8 
9  template<typename T>
10  struct AnyWriter
11  {
12  template<typename DestType>
13  void operator()(boost::any const& obj, DestType& dest){ dest = boost::any_cast<T>(obj); };
14  };
15 
16 
17 } // namespace Utilities
18 } // namespace muq
19 
20 
21 #endif
void operator()(boost::any const &obj, DestType &dest)
Definition: AnyWriter.h:13