Opened 9 years ago

Closed 8 years ago

#9908 closed Bugs (invalid)

type 'bool' unexpected

Reported by: awayne@… Owned by: Ion Gaztañaga
Milestone: To Be Determined Component: move
Version: Boost 1.55.0 Severity: Problem
Keywords: bool Boolean Cc:

Description

when compling with live555, errors found like this: type 'bool' unexpected(line 96 in file move/detail/meta_utils.hpp) it's because 'Boolean' is a macro define(as bool) in live555 lib, so "bool::value" is unexpected, it's a comflict. the solution is changename, just change the typename 'Boolean' to 'Boolean1' or sth else that's not a comflict

Change History (3)

comment:1 by Steven Watanabe, 9 years ago

Please complain to live555. #defining Boolean is wrong. It's infeasible for us to work around every evil macro defined by other libraries.

comment:2 by awayne@…, 9 years ago

in live555, Boolean is used everywhere, and it's been that many years. but in boost, it's just a template parameter's typename, it's no need to use such a name that might be a conflict. anyway, it's just a suggestion.

comment:3 by Ion Gaztañaga, 8 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.