Boost logo

Boost :

Subject: Re: [boost] [Hana] Migrating sqlpp11 to Hana (hypothetically)
From: Jeremy Maitin-Shepard (jeremy_at_[hidden])
Date: 2015-06-17 02:39:25


Louis Dionne <ldionne.2 <at> gmail.com> writes:
> Roland Bock <rbock <at> eudoxos.de> writes:
> > On 2015-06-15 21:08, Louis Dionne wrote:
> > > Is it acceptable to only import the `_s` string literal from Hana?
> > >
> > > using boost::hana::literals::operator""_s;
> > Not really. This code has to be provided by the user of the library. It
> > lives outside the sqlpp namespace. I cannot just tell them, to please
> > import some string literal into their namespace.
> >
> > [...]
>
> I must admit I don't have a solution. This is such a pain since it is a
> __joke__ in terms of implementation difficulty at the compiler/language
> level, but I think it is not solvable at the library level.

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.


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