[boost] Re: Re: Variant Library: top level const types

2003-04-05 Thread Eric Friedman
Gennadiy Rozental wrote: I argue that top-level const type arguments are meaningless in the context of variant. Given the example you provide: typedef boost::variantint const, std::string const GlobalParameter; GlobalParameter input_socket(12345); input_socket = 54321; // no

[boost] Re: Re: Variant Library: top level const types

2003-04-04 Thread Eric Friedman
Gennadiy Rozental wrote: So what I want is typedef boost::variantint const,std::string const GlobalParameter; GlobalParameter input_socket( 12345 ); // localhost::12345 GlobalParameter output_socket( MultiplexorSocket ); [snip] What if variant is the member of the class

[boost] Re: Re: Variant Library: top level const types

2003-04-04 Thread Gennadiy Rozental
I argue that top-level const type arguments are meaningless in the context of variant. Given the example you provide: typedef boost::variantint const, std::string const GlobalParameter; GlobalParameter input_socket(12345); input_socket = 54321; // no way to prevent this!! How come!?