You've already forked mariadb-columnstore-engine
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:
@ -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() {}
|
||||
|
Reference in New Issue
Block a user