Boost logo

Boost :

From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2005-03-22 16:25:18


"Jens Theisen" <jens.theisen_at_[hidden]> wrote in message
news:d1p6ou$4b4$1_at_sea.gmane.org...
| Thorsten Ottosen wrote:
| > Hm.. yeah, I thought something like
|
| > operator typename enable_if< is_same<T,int>, int>::type()
| > {
| >
| > would work.
|
| I doubt that, because it should be impossible to deduce the type.
|
| If anyone know of a trick to do a SNIFAE in a conversion operators, or
| knows that it is not possible, we would like to hear.

it seems that several people would like <boost/std_forward.hpp>;
I think Eric Niebler has already made one for his range_ex stuff.

Given this, wouldn't we be able to make all the relevant
conversion funcitions like

template< class T, A >
operator std:vector<T,A>() const;

?

-Thorsten


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