Boost logo

Boost :

Subject: Re: [boost] Compile-time string comparing
From: Anton Bikineev (ant.bikineev_at_[hidden])
Date: 2014-04-11 09:22:53


Antony Polukhin <antoshkka <at> gmail.com> writes:

> 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);
>

Thank you, Antony.

Just thought about mpl::string,
but forgot about type traits. :)


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk