Boost logo

Boost :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-08-23 01:14:01


Luke Elliott wrote:

> I was wondering why boost libraries don't do something like:
>
> class positional_options_description {
> public:
> BOOST_PROGRAM_OPTIONS_DECL positional_options_description();
> BOOST_PROGRAM_OPTIONS_DECL void add(const char* name, int
> max_count);
> ...
> };
>
> instead of:
>
> class BOOST_PROGRAM_OPTIONS_DECL positional_options_description {
> public:
> max_count);
> ...
> };
>
> in order to remove the irritating C4275 warning? i.e. only declspec
> public, protected members (and any private members invoked from inline
> methods).

Well, I did what I considered to be the standard thing. I have no idea
what's C4275 warning is, and why adding declspecs to each method is a good
idea. Can you explain?

- Volodya
 


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk