Boost logo

Boost :

From: Burc Arpat (burch_at_[hidden])
Date: 2004-01-17 17:35:30


hi,

i recently had some spare time and decided to switch my project from 1.30.0
to 1.30.2 and also give 1.31.0 rc1 a try. i encountered a rather strange
error. i am using intel 8 ( same thing with 7 ) under visual studio 6 with
sltport 4.5.3 using msvc iostreams

this code compiles fine:

--- cut fom here ---
#include <boost/type_traits.hpp>
#include <iostream>

int main() {
  std::cout << boost::is_integral<int>::value << std::endl;
  return 0 ;
}
--- cut fom here ---

but when i change the order of #includes, i.e.,

--- cut fom here ---
#include <iostream>
#include <boost/type_traits.hpp>
--- cut fom here ---

i get these errors:

--- cut from here ---
.\PRG\LIBS\BOOST_1_31_0_RC1\boost/type_traits/is_integral.hpp(38): error:
class "boost::is_integral<unsigned short>" has already been defined
BOOST_TT_AUX_BOOL_TRAIT_CV_SPEC1(is_integral,wchar_t,true)

.\PRG\LIBS\BOOST_1_31_0_RC1\boost/type_traits/is_integral.hpp(38): error:
class "boost::is_integral<const unsigned short>" has already been defined
BOOST_TT_AUX_BOOL_TRAIT_CV_SPEC1(is_integral,wchar_t,true)

...
--- cut from here ---

as i said, the above code works both with intel 7 and 8 under the exact same
setting when using boost 1.30.0

any idea what's going on?

burch

---

G. Burc ARPAT
Ph.D. Candidate

Dept. of Petroleum Eng.
Stanford University
Stanford, CA 94305-2220


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