Ticket #552 (closed defect: fixed)
compile with new boost (1.44+)
| Reported by: | Karlik | Owned by: | |
|---|---|---|---|
| Priority: | Should Have | Milestone: | Alpha 2 |
| Component: | Core engine | Keywords: | review |
| Cc: | Jayschwa |
Description
At now users with new boost library are not able to build 0ad because of error like:
../../../source/lib/file/vfs/vfs_path.h:68: error: ‘is_basic_path’ is not a template ../../../source/lib/file/vfs/vfs_path.h:69: error: explicit specialization of non-template ‘boost::filesystem::is_basic_path’
http://www.wildfiregames.com/forum/index.php?showtopic=13327
I think it might be a bug in boost but the default api will be changed soon: http://live.boost.org/doc/libs/1_44_0/libs/filesystem/v3/doc/index.htm "Version 3 is a major revision with many new and improved features. It breaks some Version 2 code.
Version 2 is the default version for Boost release 1.44 only. Version 3 will become the default starting with release 1.45."
The problem is the renaming of namespaces (unfortunatelly I haven't found any official info about it) and the compiler can't find "is_basic_path".
I think the attached patch will not break building with older boost (I've tested it only with 1.44).
