$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [MPL] true_type,false_type versus true_,false_
From: Edward Diener (eldiener_at_[hidden])
Date: 2014-01-04 02:15:31
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/algorithm/sequence_alignment/edit_distance.hpp#L62
>
> 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.