
23 Aug
2005
23 Aug
'05
6:14 a.m.
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