Boost logo

Boost :

Subject: Re: [boost] [Pointer Container] Modification of pointer containers to allow const elements
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2010-10-16 04:25:09


----- Original Message -----
From: "Gerardo Hernandez" <g.hernandez_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Saturday, October 16, 2010 1:39 AM
Subject: Re: [boost] [Pointer Container] Modification of pointer containers to allow const elements

So we have two options:
1) Scatter const_cast throught the code
2) Use mpl::if_ at the expense of one additional template
instantiation (Would that be so painful?)

Additional opinions are largely welcomed.

Gerardo.

_______________________________________________
+1 for option 1). The internal implementation doesn't cares the user. One of the initial goals was to avoid template instantatiation, wasn't it?

Vicente


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk