]> git.mxchange.org Git - simgear.git/commitdiff
Comment out an improperly written constructor.
authorcurt <curt>
Mon, 23 Feb 2004 01:34:31 +0000 (01:34 +0000)
committercurt <curt>
Mon, 23 Feb 2004 01:34:31 +0000 (01:34 +0000)
simgear/environment/metar.hxx

index 275c7cbe40b363782a6c941e9499e35de88e1b25..c1e29f212c3ec58b30fe0a23c0c7928a2f784c78 100644 (file)
@@ -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 {