Subject: [Boost-bugs] [Boost C++ Libraries] #11869: Boost should consistently use BOOST_ for all #defines and standardize header guards
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-12-23 16:31:32
#11869: Boost should consistently use BOOST_ for all #defines and standardize
header guards
-----------------------------------------------+---------------------------
Reporter: Joseph Garvin <joseph.h.garvin@â¦> | Type: Bugs
Status: new | Milestone: To Be
Component: None | Determined
Severity: Problem | Version: Boost 1.61.0
| Keywords:
-----------------------------------------------+---------------------------
I use boost in my own code, and I've recently had to make it work with a
3rd party that uses boost as well, but they're on a different version.
Getting them to update versions is going to take a long time, and I have
no other choice of vendor for this particular product, so a coworker was
forced to write a script to try and rename all the #defines and symbol
names (boost -> bxxst) in order to have the two versions coexist in the
same binary.
This works, but it's forced to have a lot of special cases due to two
issues:
-Header guard style is basically random, I've seen 5+ different variants.
-A random assortment of #define's that have no indication in their name
that they come from boost that I have to just hard code into my script.
Seeing as the first is a style inconsistency it would be desirable to fix
anyway, and the latter is bad for interoperability with other libraries
(prefixing #define's with your library's name is pretty standard practice
in the C/C++ world), and I've heard of others dealing with my problem
before, I figured it merited a bug report.
Fixing it won't help me for now because any changes will only be in newer
versions obviously, but it would it make it easier to deal with going
forward and have the other mentioned benefits.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11869> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC