C++ (Qt)struct CData { int mType; union { int mInt; float mFloat; bool mBool; ARGB mColor; };};
C++ (Qt) struct AbstractAnyFabric{ virtual ~AbstractAnyFabric () {} virtual boost::any make () = 0;}; template < typename _Type >struct AnyFabric : public AbstractAnyFabric{ virtual boost::any make () { return boost::any( _Type() ); }};
template < typename _Type >const AbstractAnyFactory & any_factory (){ static const AnyFactory< _Type > factory; return factory;}
C++ (Qt)Result foo ( const boost::any & )
C++ (Qt)struct to_TypeID : public any_visitor<uint, type_list<int, uint, float, bool, ARGB>> { uint operator()(const int &) const { return 'SINT'; } uint operator()(const uint &) const { return 'UINT'; } uint operator()(const float &) const { return 'REAL'; } uint operator()(const bool &) const { return 'BOOL'; } uint operator()(const ARGB &) const { return 'ARGB'; } };