Boost logo

Boost Users :

Subject: Re: [Boost-users] [Enable-if] Selectively instantiating methods.
From: Julien Nitard (julien.nitard_at_[hidden])
Date: 2011-09-23 03:53:46


Hi

I didn't test, but I think something like this should do the job:

template<typename T> struct S
> {
> template <class T1 = T>
> typename disable_if<is_const<T1>, int>::type mutating_method();
> };
>
>

Regards,

Julien



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