Subject: Re: [boost] Single letter template type causes errors in compile of program_options and filesystem boost libraries
From: Stefan Seefeld (seefeld_at_[hidden])
Date: 2008-12-18 15:38:52
Mike Collier wrote:
> The errors are the result of using single letters for variables or
> template types. The reason for the errors is in my compile environment
> ( electrical engineering related ) defines are used for the
> convenience of writing units in code. These defines exist in a vendor
> supplied header in my project:
> #define A
> #define V
> #define W
> #define s
> #define S
> #define J
Sorry, but this is just bad coding practice. Instead of changing boost
in order to accomodate for it, I suggest that you isolate the libraries
from each other, by carefully undefining those single-letter macros
prior to including boost.
If something should use longer names, it's these macros in your library,
not boost template parameters.
-- ...ich hab' noch einen Koffer in Berlin...
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk