Anton Pevtsov wrote:
Martin,
This code:
_RWSTD_NAMESPACE (std) {
// declare to avoid dragging in all of <memory>
// (yes, it is undefined for programs to do that)
template <class T>
struct allocator;
} // namespace std
produces a warning on MSVC: the allocator is defined as class.
The changing to "class allocator" eliminates the warning.
Is this change ok?
The warning is bogus -- from a language standpoint there is no
difference between class or struct in the declaration of a class,
only in the definition of it. But I will change the class-key
from struct to class just to silence the warning. Thanks for
pointing it out!
Martin