Boost logo

Boost :

Subject: Re: [boost] [optional] generates unnessesary code for trivial types
From: Nevin Liber (nevin_at_[hidden])
Date: 2012-02-09 03:59:15

On 8 February 2012 17:18, Andrey Semashev <andrey.semashev_at_[hidden]> wrote:
> optional< T& > is a useful thing when you want to apply operators (such as
> relation operators or streaming) to the referred value. In generic code you
> don't have to specialize for pointers to do the right thing.

+1 here. Please keep the interfaces the same, unless you have a
*very* compelling reason not to.

(Unless, of course, you are one of those who *likes* vector<bool>... :-))

 Nevin ":-)" Liber  <mailto:nevin_at_[hidden]>  (847) 691-1404

Boost list run by bdawes at, gregod at, cpdaniel at, john at