
5 May
2010
5 May
'10
6:13 a.m.
AMDG Jeffrey Lee Hellrung, Jr. wrote:
On 5/4/2010 10:13 AM, Chad Nelson wrote:
Thanks for the suggestion, but I'd like to keep the dependencies and compile times at a minimum. I'm also not familiar with mpl yet... I'll look at it at some point, but I'd rather concentrate on XInt itself for now. The time I can devote to it is limited.
IMHO, using multiple "typename enable_if<...>::type* = 0" in a constructor is just fine. It makes the clauses line up a little more uniformly (to me). Just remember, you'll have to use boost::mpl::and_ (or similar) if you need short-circuiting.
IIRC, Sun CC can break with multiple enable_ifs In Christ, Steven Watanabe