From 99bf2c6f9ec1c646fba8c17ef4caf75834ec682c Mon Sep 17 00:00:00 2001 From: curt Date: Mon, 23 Feb 2004 01:34:31 +0000 Subject: [PATCH] Comment out an improperly written constructor. --- simgear/environment/metar.hxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 { -- 2.39.5