
7 Dec
2011
7 Dec
'11
9:31 p.m.
Le 07/12/2011 22:15, Jeffrey Lee Hellrung, Jr. a écrit :
How about simply _1 _10 _100 ...
conflicts with mpl::_1, boost::_1 and all other lambda liekplacehodler
then? *if* it's deemed desirable to have such constants in the first place. I.e., in what instances are the corresponding literals insufficient?
Constant placeholder for integer make little sense, they make for real constant with non trivial vlaue and representation : pi, gold, etc ... In NT2 we decided to have everything a functor (constant included) and forward them to free function. This allow us to have both functionnal and object like interface for them.