Boost logo

Boost :

From: Luke Elliott (luke_elliott_at_[hidden])
Date: 2005-08-22 17:33:59


I was wondering why boost libraries don't do something like:

class positional_options_description {
         BOOST_PROGRAM_OPTIONS_DECL positional_options_description();
         BOOST_PROGRAM_OPTIONS_DECL void add(const char* name, int

instead of:

class BOOST_PROGRAM_OPTIONS_DECL positional_options_description {

in order to remove the irritating C4275 warning? i.e. only declspec
public, protected members (and any private members invoked from inline

 From searching the archives it looks like the usual suggestion is to
disable the warning, I just wondered if the above had been considered
(and if rejected, why)? Is it because this behaviour doesn't work with
win32 builds of GCC if using the declspec functionality (instead of the

Thanks for any insight.

Luke Elliott.

Boost list run by bdawes at, gregod at, cpdaniel at, john at