$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] Compile-time string comparing
From: Antony Polukhin (antoshkka_at_[hidden])
Date: 2014-04-11 08:31:24
2014-04-11 16:15 GMT+04:00 Anton Bikineev <ant.bikineev_at_[hidden]>:
> Hi all.
>
> I think it's frequently asked question.
> If so, I'm sorry.
>
> Is there anything feature in Boost
> that allows to compare strings at compile-time?
>
You can try to use MPL's string:
http://www.boost.org/doc/libs/1_55_0/libs/mpl/doc/refmanual/string.html
typedef mpl::string<'hell','o wo','rld'> hello;
typedef mpl::string<'hi t','here'> hi;
BOOST_STATIC_ASSERT(!boost::is_same<hello, hi>::value);
-- Best regards, Antony Polukhin