[MPL] true_type,false_type versus true_,false_

I've been using true_type and false_type in some of my interfaces, for example: https://github.com/erikerlandson/edit_distance/blob/master/include/boost/alg... However it seems as though true_ and false_ are more compatible with MPL logic functions. Is there any particular reason to use one over the other? Would it be preferable to use true_ and false_?

On 1/3/2014 5:35 PM, Erik Erlandson wrote:
I've been using true_type and false_type in some of my interfaces, for example: https://github.com/erikerlandson/edit_distance/blob/master/include/boost/alg...
However it seems as though true_ and false_ are more compatible with MPL logic functions. Is there any particular reason to use one over the other? Would it be preferable to use true_ and false_?
Since true_type and false_type in type traits are derived from true_ and false_ in MPL, you are fine using them if you have to interoperate with MPL.
participants (2)
-
Edward Diener
-
Erik Erlandson