From: curt Date: Mon, 23 Feb 2004 01:34:31 +0000 (+0000) Subject: Comment out an improperly written constructor. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=99bf2c6f9ec1c646fba8c17ef4caf75834ec682c;p=simgear.git Comment out an improperly written constructor. --- diff --git a/simgear/environment/metar.hxx b/simgear/environment/metar.hxx index 275c7cbe..c1e29f21 100644 --- a/simgear/environment/metar.hxx +++ b/simgear/environment/metar.hxx @@ -148,7 +148,12 @@ protected: class SGMetar { public: SGMetar(const char *m); - SGMetar(const string m) { SGMetar(m.c_str()); } + + // The following contructor is tempting, but it is not + // correct, it creates an anonymous instance of SGMetar and + // then immediately throws it away. + // SGMetar(const string m) { SGMetar(m.c_str()); } + ~SGMetar(); enum ReportType {