Ticket #552 (closed defect: fixed)

Opened 3 years ago

Last modified 13 months ago

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).

Attachments

boost_patch (410 bytes) - added by Karlik 3 years ago.

Change History

Changed 3 years ago by Karlik

comment:1 Changed 3 years ago by Jayschwa

  • Cc Jayschwa added

comment:2 Changed 3 years ago by philip

  • Status changed from new to closed
  • Resolution set to fixed

(In [8043]) Fix #552 (compile with new boost (1.44+)), based on patch from Karlik

comment:3 Changed 3 years ago by anonymous

  • Milestone Unclassified deleted

Milestone Unclassified deleted

comment:4 Changed 13 months ago by historic_bruno

  • Milestone set to Alpha 2
Note: See TracTickets for help on using tickets.