1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

Fully resolve potentially ambiguous symbols by removing using namespace statements from headers which have a cascading effect. This causes potential behavior changes when switching to c++11 since symbols can be exported from std and boost while both have been imported into the global namespace.

This commit is contained in:
David Mott
2019-04-26 08:21:47 -05:00
parent 1813add162
commit 4b9d046c6e
131 changed files with 600 additions and 630 deletions

View File

@ -25,8 +25,6 @@
#include "functor.h"
using namespace std;
namespace funcexp
{
@ -141,7 +139,7 @@ protected:
exponent = (int)floor(log10( fabsl(floatVal)));
base = floatVal * pow(10, -1.0 * exponent);
if (isnan(exponent) || isnan(base))
if (std::isnan(exponent) || std::isnan(base))
{
snprintf(buf, 20, "%Lf", floatVal);
fFloatStr = execplan::removeTrailing0(buf, 20);
@ -325,7 +323,7 @@ public:
*/
class Func_lpad : public Func_Str
{
static const string fPad;
static const std::string fPad;
public:
Func_lpad() : Func_Str("lpad") {}
virtual ~Func_lpad() {}
@ -343,7 +341,7 @@ public:
*/
class Func_rpad : public Func_Str
{
static const string fPad;
static const std::string fPad;
public:
Func_rpad() : Func_Str("rpad") {}
virtual ~Func_rpad() {}