Improve compatibility with bcc32

This commit is contained in:
vitaut 2015-11-17 08:53:15 -08:00
parent 3a2f91bd58
commit 0219d5591b

View File

@ -614,7 +614,10 @@ inline int getsign(double x) {
int dec;
explicit Ecvt(double val) : value(val), sign(0), dec(0) {}
void handle(int) {}
void handle(Null<>) { ecvt(value, 0, &dec, &sign); }
void handle(fmt::internal::Null<>) { // Fully qualify to make bcc happy.
using namespace std;
ecvt(value, 0, &dec, &sign);
}
} e(value);
char buffer[2]; // The buffer size must be >= 2 or _ecvt_s will fail.
using namespace fmt_system;