Commit 50777e26 authored by Jan Lindström's avatar Jan Lindström

Fix Windows compiler error by disabling for now the nullptr class

implementation.
parent 6dad23f0
...@@ -43,6 +43,7 @@ Modified 30/07/2014 Jan Lindström jan.lindstrom@skysql.com ...@@ -43,6 +43,7 @@ Modified 30/07/2014 Jan Lindström jan.lindstrom@skysql.com
Custom nullptr implementation for under g++ 4.6 Custom nullptr implementation for under g++ 4.6
*******************************************************/ *******************************************************/
// #pragma once // #pragma once
/*
namespace std namespace std
{ {
// based on SC22/WG21/N2431 = J16/07-0301 // based on SC22/WG21/N2431 = J16/07-0301
...@@ -70,11 +71,11 @@ namespace std ...@@ -70,11 +71,11 @@ namespace std
void operator &() const; void operator &() const;
template<typename any> void operator +(any) const template<typename any> void operator +(any) const
{ {
/*I Love MSVC 2005!*/ // I Love MSVC 2005!
} }
template<typename any> void operator -(any) const template<typename any> void operator -(any) const
{ {
/*I Love MSVC 2005!*/ // I Love MSVC 2005!
} }
}; };
static const nullptr_t __nullptr = {}; static const nullptr_t __nullptr = {};
...@@ -83,6 +84,8 @@ static const nullptr_t __nullptr = {}; ...@@ -83,6 +84,8 @@ static const nullptr_t __nullptr = {};
#ifndef nullptr #ifndef nullptr
#define nullptr std::__nullptr #define nullptr std::__nullptr
#endif #endif
*/
/**************************************************//** /**************************************************//**
End of Custom nullptr implementation for under g++ 4.6 End of Custom nullptr implementation for under g++ 4.6
*******************************************************/ *******************************************************/
...@@ -323,7 +326,8 @@ btr_defragment_item_t* ...@@ -323,7 +326,8 @@ btr_defragment_item_t*
btr_defragment_get_item() btr_defragment_get_item()
{ {
if (btr_defragment_wq.empty()) { if (btr_defragment_wq.empty()) {
return nullptr; return NULL;
//return nullptr;
} }
mutex_enter(&btr_defragment_mutex); mutex_enter(&btr_defragment_mutex);
list< btr_defragment_item_t* >::iterator iter = btr_defragment_wq.begin(); list< btr_defragment_item_t* >::iterator iter = btr_defragment_wq.begin();
......
...@@ -43,6 +43,7 @@ Modified 30/07/2014 Jan Lindström jan.lindstrom@skysql.com ...@@ -43,6 +43,7 @@ Modified 30/07/2014 Jan Lindström jan.lindstrom@skysql.com
/**************************************************//** /**************************************************//**
Custom nullptr implementation for under g++ 4.6 Custom nullptr implementation for under g++ 4.6
*******************************************************/ *******************************************************/
/*
// #pragma once // #pragma once
namespace std namespace std
{ {
...@@ -71,11 +72,11 @@ namespace std ...@@ -71,11 +72,11 @@ namespace std
void operator &() const; void operator &() const;
template<typename any> void operator +(any) const template<typename any> void operator +(any) const
{ {
/*I Love MSVC 2005!*/ // I Love MSVC 2005!
} }
template<typename any> void operator -(any) const template<typename any> void operator -(any) const
{ {
/*I Love MSVC 2005!*/ // I Love MSVC 2005!
} }
}; };
static const nullptr_t __nullptr = {}; static const nullptr_t __nullptr = {};
...@@ -84,6 +85,7 @@ static const nullptr_t __nullptr = {}; ...@@ -84,6 +85,7 @@ static const nullptr_t __nullptr = {};
#ifndef nullptr #ifndef nullptr
#define nullptr std::__nullptr #define nullptr std::__nullptr
#endif #endif
*/
/**************************************************//** /**************************************************//**
End of Custom nullptr implementation for under g++ 4.6 End of Custom nullptr implementation for under g++ 4.6
*******************************************************/ *******************************************************/
...@@ -324,7 +326,8 @@ btr_defragment_item_t* ...@@ -324,7 +326,8 @@ btr_defragment_item_t*
btr_defragment_get_item() btr_defragment_get_item()
{ {
if (btr_defragment_wq.empty()) { if (btr_defragment_wq.empty()) {
return nullptr; return NULL;
//return nullptr;
} }
mutex_enter(&btr_defragment_mutex); mutex_enter(&btr_defragment_mutex);
list< btr_defragment_item_t* >::iterator iter = btr_defragment_wq.begin(); list< btr_defragment_item_t* >::iterator iter = btr_defragment_wq.begin();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment