synfig-core  1.0.3
named_type.h
Go to the documentation of this file.
1 /* === S Y N F I G ========================================================= */
23 /* ========================================================================= */
24 
25 #ifndef __SYNFIG_NAMED_TYPE_H
26 #define __SYNFIG_NAMED_TYPE_H
27 
35 template<typename T>
36 struct named_type
37  : public boost::program_options::typed_value<T>
38 {
40  : boost::program_options::typed_value<T>(&value)
41  , _name(name)
42  {
43  }
44  std::string name() const { return _name; }
46  T value;
47 };
48 
49 #endif