On 25/10/10 08:28, Henning Basold wrote:
> Am 24.10.2010 17:23, schrieb Mateusz Loskot:
>> On 21/10/10 10:26, Henning Basold wrote:
>>> The integration of arbitrary fusion sequences works by using SFINAE (the
>>> new parameter to type_conversion). A specialization of type_conversion
>>> is then enabled iff the parameter T models a fusion sequence.
>> Have you compiled any program using SOCI with both,
>> boost::fusion (with boost::tuple as sequence enabled)
>> and the original boost::tuple support?
>> It is a program using soci/core/boost-tuple.h and
>> soci/core/boost-fusion.h
>>
>> I'm wondering how if/how you solved it.
>>
>> Best regards,
>
> Hi,
>
> I have been away visiting relatives over the weekend. So sorry for not
> responding so far.
>
> No I have not combined adapted boost::tuple and the support for it
> through SOCI (headers <boost-fusion.h> vs.
> <boost/fusion/adapted/boost_tuple.hpp>). Hope you mean that.

Yes, I do.

> But the combination cannot be possible because the instantiations are 
> ambiguous.

Indeed.

> There are two possible solutions:
> 1. warn users that those headers cannot be combined (not a real solution)
> 2. if the correct boost version is present include the fusion adaption
> else use the current implementation.

I have used the 2. to solved this problem in my local copy.
So, I was curious what solution you'd propose.

> I've attached a patch which implements the second solution.

Thanks, I'll check it tonight.

> But the user
> may be noted that this is just for backwards compatibility. It would be
> better if future adaption of tuple is done through Boost.Fusion.

OK, sounds good and it is exactly the solution I've considered too.
I'm happy to see it confirmed as best option.

Checking in the patches and moving forward tonight.
Thank you for your contributions!

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org
Member of ACCU, http://accu.org

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to