Boost logo

Boost Users :

Subject: [Boost-users] [mpl] template parameters and mpl::if_/mpl::eval_if
From: Edward Diener (eldiener_at_[hidden])
Date: 2009-09-15 15:26:33


I know I can try this out but I will ask here anyway just to make sure
my test is not being incorrectly done.

Can mpl::if_/mpl::eval_if be used to pick the type for which a default
template parameter is set based on some metaprogramming boolean test of
a previous template parameter type ?

I know that C++ allows a template parameter default to be set based on a
previous template parameter, but I don't know if mpl::if_/mpl::eval_if
can be used in this context.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net