|
Boost : |
Subject: Re: [boost] [optional] using name boost::in_place -- need your opinion/advice
From: Krzysztof Czainski (1czajnik_at_[hidden])
Date: 2016-05-30 07:21:50
2016-05-30 12:46 GMT+02:00 Andrey Semashev <andrey.semashev_at_[hidden]>:
> On Monday, 30 May 2016 13:45:28 MSK Krzysztof Czainski
> wrote:
> > 2016-05-30 11:29 GMT+02:00 Andrey Semashev
> <andrey.semashev_at_[hidden]>:
> >
> > > The typed in-place
> > > factories ruin the solution though, even if not used by
> optional.
> >
> > How so?
>
> Typed in-place factory requires an explicit template parameter
> to be specified, which is not achievable if in_place is an object.
>
Oh yeah. Too bad a variable template cannot be "overloaded" with the
non-template function object.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk