Boost geometry 的溶解在这里描述了一点,这是我现在需要的,它的 SVN 主页就在这里,但是一旦我加入#include <boost/geometry/extensions/algorithms/dissolve.hpp>
我就会得到编译错误(错误 C4430、C2146 和 C2061)=(任何人都可以提供补丁吗?
示例代码可以在这里找到例如
错误:
Error 2 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\users\avesta\desktop\cf\trunk\cloudserver\3rdparty\header-only\boost\geometry\extensions\algorithms\dissolve.hpp 67 1 CloudServer
Error 3 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\users\avesta\desktop\cf\trunk\cloudserver\3rdparty\header-only\boost\geometry\extensions\algorithms\dissolve.hpp 67 1 CloudServer
Error 1 error C2146: syntax error : missing ';' before identifier 'state_type' c:\users\avesta\desktop\cf\trunk\cloudserver\3rdparty\header-only\boost\geometry\extensions\algorithms\dissolve.hpp 67 1 CloudServer
Error 4 error C2061: syntax error : identifier 'state_type' c:\users\avesta\desktop\cf\trunk\cloudserver\3rdparty\header-only\boost\geometry\extensions\algorithms\dissolve.hpp 76 1 CloudServer
最少的代码看起来像(在 VS2010 上测试失败并出现警告错误):
#include <boost/geometry/extensions/algorithms/dissolve.hpp>
int main()
{
return 0;
}