(编辑)环境:
plee@sos-build:/usr/local/include/boost$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 11.10
Release: 11.10
Codename: oneiric
plee@sos-build:/usr/local/include/boost$ uname -a
Linux sos-build 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7
我真的被这事弄糊涂了。我是不是做了什么导致了这个问题,或者是boost中未关闭的命名空间块,或者是VS c++ 2008中的某个bug?我确信我已经正确地关闭了所有我自己的命名空间,所有的包含都在它们的外部和之上,并且我所有的头文件都包含了卫士。
boost/function.hpp仅包含在此标头中。我的库中的另外两个头文件都包含了boost/cstdint.hpp,但它们没有这个问题。