Comment out an improperly written constructor.
This commit is contained in:
parent
3fdeea7f65
commit
99bf2c6f9e
@ -148,7 +148,12 @@ protected:
|
|||||||
class SGMetar {
|
class SGMetar {
|
||||||
public:
|
public:
|
||||||
SGMetar(const char *m);
|
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();
|
~SGMetar();
|
||||||
|
|
||||||
enum ReportType {
|
enum ReportType {
|
||||||
|
Loading…
Reference in New Issue
Block a user