Boost logo

Boost Users :

Subject: Re: [Boost-users] Unique parameter values for interfaces
From: Ryan McConnehey (mccorywork_at_[hidden])
Date: 2009-05-06 03:37:44


Roman Perepelitsa wrote:
> template<typename S, *int N*>
> struct ParameterValue
> {
> ParameterValue(S value_) : value(value_) {}
> S value
> };
>
> typedef ParameterValue<std::string, *0*> ConfigName;
> typedef ParameterValue<std::string, *1*> PathName;
>
> Roman Perepelitsa.

Is is possible to have the number be generated automatically so that it
doesn't need to be defined by the user?

Ryan



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net