Revert "tinyexpr: use std:: namespace for older libstdc++"

This reverts commit f46444f106e76908643de50fb4536d84ff4e1026.

This commit does not build on macOS or RHEL 7.
This commit is contained in:
David Adam 2021-03-31 22:53:18 +08:00
parent f46444f106
commit 0c03a0267f

View File

@ -38,12 +38,6 @@
#include <iterator>
#include <utility>
// Older version of libstdc++ (GCC 5 and before) need this as wutil.h includes common.h, which
// includes <algorithm>, which includes <cmath> - meaning the functions get included into the std::
// namespace, and including math.h later does not reimport them.
using std::isnan;
using std::signbit;
// TODO: It would be nice not to rely on a typedef for this, especially one that can only do
// functions with two args.
using te_fun2 = double (*)(double, double);