Boost logo

Boost Users :

Subject: [Boost-users] enable_if on operator type()
From: Joel Falcou (joel.falcou_at_[hidden])
Date: 2008-11-23 16:30:27

How can I set up SFINAE using enable_if on method like

struct foo
   template<class T> operator T() { return T(1); }

I want the operator T() to be ther only if T is arithemtic for example.


Joel Falcou - Assistant Professor
PARALL Team - LRI - Universite Paris Sud XI
Tel : (+33)1 69 15 66 35

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at