[bind10-dev] news about Windows port (4/*.h)
Francis Dupont
fdupont at isc.org
Wed Oct 5 11:25:53 UTC 2011
A recurring warning is the C4512 about '=' for a class or structure which
includes a const(ant) field. The easiest way to avoid the warning is:
private:
// silence MSVC warning C4512: assignment operator could not be generated
FooBar& operator=(FooBar const&);
Another issue (and IMHO MSVC is right as it can lead to real problems):
DNSLookup() : self_(this) {}
must be written:
DNSLookup() { self_ = this; }
Francis Dupont <fdupont at isc.org>
PS: there are some occurrences of these 2 issues in .cc files too.
More information about the bind10-dev
mailing list