Hi,
I have some troubles in compiling the following simple code,
tboost.hpp, tboost.cpp
The problem is always from the declaration of
array_type A(boost::extents[2000000][1]);
in the header file.
Error message from compiling,
In file included from tboost.cpp:2:
tboost.h:14: error: `extents' has not been declared
boost.h:14: error: ISO C++ forbids declaration of `parameter' with no type
If I define
array_type A(boost::extents[2000000][1]);
in the source code tboost.cpp, it will compile successfully.
Could anyone help me to solve it? Thanks a lot,
gq
tboost.hpp
#include <cassert>
#include