From 8a34c1bd2049a0ff500c44a248e136e87d5fed35 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 14 Jul 2010 19:40:07 +1000 Subject: Visual C++ 98 had a fatal error with the previous definition of a default constructor. This is equivalent and compiles. --- lexlib/OptionSet.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lexlib/OptionSet.h') diff --git a/lexlib/OptionSet.h b/lexlib/OptionSet.h index 00013ce5b..277ca7a35 100644 --- a/lexlib/OptionSet.h +++ b/lexlib/OptionSet.h @@ -28,7 +28,10 @@ class OptionSet { plcos ps; }; std::string description; - Option(plcob pb_=0, std::string description_="") : + Option() : + opType(SC_TYPE_BOOLEAN), pb(0), description("") { + } + Option(plcob pb_, std::string description_="") : opType(SC_TYPE_BOOLEAN), pb(pb_), description(description_) { } Option(plcoi pi_, std::string description_) : -- cgit v1.2.3