|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2003-04-03 04:50:49
Gennadiy Rozental wrote:
> So what I want is
>
> typedef boost::variant<int const,std::string const> GlobalParameter;
>
> GlobalParameter input_socket( 12345 ); // localhost::12345
> GlobalParameter output_socket( "MultiplexorSocket" );
typedef boost::variant<int, std::string> GlobalParameter;
GlobalParameter const input_socket( 12345 ); // localhost::12345
GlobalParameter const output_socket( "MultiplexorSocket" );
Same as vector<int const> vs vector<int> const.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk