Skip to content
Snippets Groups Projects
Commit 644ccc4f authored by Christian Engwer's avatar Christian Engwer
Browse files

fix #461

[[Imported from SVN: r5438]]
parent ac4baee9
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2431.pdf http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2431.pdf
*/ */
const // this is a const object... const // this is a const object...
class nullptr_t { // of type nullptr_t class dune_nullptr_t { // of type nullptr_t
public: public:
template<class T> // convertible to any type template<class T> // convertible to any type
operator T*() const // of null non-member operator T*() const // of null non-member
...@@ -24,6 +24,8 @@ private: ...@@ -24,6 +24,8 @@ private:
void operator&() const; // whose address can't be taken void operator&() const; // whose address can't be taken
} nullptr = {}; // and whose name is nullptr } nullptr = {}; // and whose name is nullptr
typedef dune_nullptr_t nullptr_t;
#endif // HAVE_NULLPTR #endif // HAVE_NULLPTR
#endif // DUNE_NULLPTR_HH #endif // DUNE_NULLPTR_HH
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment