|
Boost Users : |
Subject: Re: [Boost-users] Determine at compile time whether type has subtraction semantics?
From: Frédéric Bron (frederic.bron_at_[hidden])
Date: 2011-02-21 09:14:38
> 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.
Can you check?
Frédéric
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