Boost logo

Boost Users :

Subject: Re: [Boost-users] Determine at compile time whether type has subtraction semantics?
From: John Reid (j.reid_at_[hidden])
Date: 2011-02-21 10:39:25


On 21/02/11 14:14, Frédéric Bron wrote:
>> This looks good but it isn't compiling for me right now. Just compiling this
>> include:
>> #include<boost/type_traits/has_operator_minus.hpp>
>>
>> gives me this error:
>>
>> In file included from
>> /home/john/Dev/ThirdParty/boost/sandbox/type_traits/boost/type_traits/has_operator_minus.hpp:55,
>> from src/sandbox.cpp:2:
>> /home/john/Dev/ThirdParty/boost/sandbox/type_traits/boost/type_traits/detail/has_binary_operator.hpp:165:
>> error: expected constructor, destructor, or type conversion before ‘(
>> ’ token
>
> Probably the order of include directories is 1. boost, 2. sandbox.
> You need 1. sandbox, 2. boost.

OK I got this working with the Boost.Build advice here:

http://lists.boost.org/boost-build/2011/02/24625.php

Thanks,
John.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net