int main() {
std::cout << "hello world" << std::endl;
}
[coutinho@darkstar tmp]$ g++-4.1 --version
g++-4.1 (GCC) 4.1.3 20080623 (prerelease) (Ubuntu 4.1.2-24ubuntu1)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[coutinho@darkstar tmp]$ g++-4.1 a.cpp
[coutinho@darkstar tmp]$ g++-4.2 a.cpp
[coutinho@darkstar tmp]$ g++-4.3 a.cpp
In file included from /usr/include/boost/dynamic_bitset.hpp:15, from a.cpp:2:
/usr/include/boost/dynamic_bitset/dynamic_bitset.hpp: In member function ‘size_t boost::dynamic_bitset<Block, Allocator>::count() const’:
/usr/include/boost/dynamic_bitset/dynamic_bitset.hpp:1021: error: ‘mode’ cannot appear in a constant-expression
/usr/include/boost/dynamic_bitset/dynamic_bitset.hpp:1021: error: template argument 1 is invalid
/usr/include/boost/dynamic_bitset/dynamic_bitset.hpp:1021: error: expected `>' before ‘*’ token
/usr/include/boost/dynamic_bitset/dynamic_bitset.hpp:1021: error: expected `(' before ‘*’ token
/usr/include/boost/dynamic_bitset/dynamic_bitset.hpp:1021: error: expected primary-expression before ‘>’ token
[coutinho@darkstar tmp]$
It compiles with g++ 4.1.3 and 4.2.4
[coutinho@darkstar tmp]$ cat a.cpp dynamic_ bitset. hpp>
#include <iostream>
#include <boost/
int main() {
std::cout << "hello world" << std::endl;
}
[coutinho@darkstar tmp]$ g++-4.1 --version
g++-4.1 (GCC) 4.1.3 20080623 (prerelease) (Ubuntu 4.1.2-24ubuntu1)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[coutinho@darkstar tmp]$ g++-4.2 --version
g++-4.2 (GCC) 4.2.4 (Ubuntu 4.2.4-5ubuntu1)
[...]
[coutinho@darkstar tmp]$ g++-4.3 --version
g++-4.3 (Ubuntu 4.3.3-5ubuntu4) 4.3.3
[...]
[coutinho@darkstar tmp]$ g++-4.1 a.cpp boost/dynamic_ bitset. hpp:15,
from a.cpp:2: boost/dynamic_ bitset/ dynamic_ bitset. hpp: In member function ‘size_t boost:: dynamic_ bitset< Block, Allocator>::count() const’: boost/dynamic_ bitset/ dynamic_ bitset. hpp:1021: error: ‘mode’ cannot appear in a constant-expression boost/dynamic_ bitset/ dynamic_ bitset. hpp:1021: error: template argument 1 is invalid boost/dynamic_ bitset/ dynamic_ bitset. hpp:1021: error: expected `>' before ‘*’ token boost/dynamic_ bitset/ dynamic_ bitset. hpp:1021: error: expected `(' before ‘*’ token boost/dynamic_ bitset/ dynamic_ bitset. hpp:1021: error: expected primary-expression before ‘>’ token
[coutinho@darkstar tmp]$ g++-4.2 a.cpp
[coutinho@darkstar tmp]$ g++-4.3 a.cpp
In file included from /usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
[coutinho@darkstar tmp]$