Boost logo

Boost :

Subject: Re: [boost] [Hana] Migrating sqlpp11 to Hana (hypothetically)
From: Louis Dionne (ldionne.2_at_[hidden])
Date: 2015-06-17 11:05:25


Roland Bock <rbock <at> eudoxos.de> writes:

>
> On 2015-06-17 08:39, Jeremy Maitin-Shepard wrote:
> > [...]
> >
> > It seems there is the obvious solution of also defining operator""
> > _boost_hana_s in the global namespace. I guess it is just a question of
> > how common this problem is likely to be.
>
> Sure, but doesn't that feel like we're back in the dark ages before
> namespaces?

I would also prefer not putting Hana's literals in the global namespace.

> There was a nice suggestion from Tomasz on the std-proposals list [1]:
>
> [...]
> auto s = boost::hana::"sample"_s;
> [...]

I think that is a very nice solution. Who's writing the paper? :-)

Louis


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