Opened 14 years ago
Closed 14 years ago
#2495 closed Bugs (fixed)
boost/type_traits/is_base_and_derived.hpp fails to compile when compiling using gcc -Wundef
Reported by: | Owned by: | John Maddock | |
---|---|---|---|
Milestone: | Boost 1.38.0 | Component: | type_traits |
Version: | Boost 1.37.0 | Severity: | Problem |
Keywords: | Cc: |
Description
This is on boost 1.37.0 (no option for that in Version pull down at the moment).
The following program:
---snip here--- #include <boost/type_traits/is_base_and_derived.hpp> ---snip here---
fails to compile if you compile with 'gcc -W -Wall -Wundef'. It gives the following errors:
In file included from is_base_and_derived_problem.cpp:1: /home/andyc/work/3rdParty/boost_1_37_0/boost/type_traits/is_base_and_derived.hpp:243:1: warning: "CODEGEARC_WORKAROUND_GUARD" is not defined /home/andyc/work/3rdParty/boost_1_37_0/boost/type_traits/is_base_and_derived.hpp:243:1: warning: "CODEGEARC" is not defined
Change History (3)
comment:1 by , 14 years ago
Component: | None → type_traits |
---|---|
Owner: | set to |
comment:2 by , 14 years ago
Version: | Boost 1.36.0 → Boost 1.37.0 |
---|
comment:3 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Actually it compiles just fine for me: it just emits some annoying warnings.
I've fixed workaround.hpp in Trunk to suppress these.