astyle formatting
This commit is contained in:
parent
209dffbe1b
commit
f0220c5340
|
@ -33,14 +33,16 @@
|
||||||
const // this is a const object...
|
const // this is a const object...
|
||||||
class {
|
class {
|
||||||
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
|
||||||
{ return 0; } // pointer...
|
return 0; // pointer...
|
||||||
template<class C, class T> // or any type of null
|
}
|
||||||
operator T C::*() const // member pointer...
|
template<class C, class T> // or any type of null
|
||||||
{ return 0; }
|
operator T C::*() const { // member pointer...
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
private:
|
private:
|
||||||
void operator&() const; // whose address can't be taken
|
void operator&() const; // whose address can't be taken
|
||||||
} cppcheck_nullptr_impl = {}; // and whose name is nullptr
|
} cppcheck_nullptr_impl = {}; // and whose name is nullptr
|
||||||
|
|
||||||
// An evil workaround for the inability to disable -Wc++0x-compat using a #pragma.
|
// An evil workaround for the inability to disable -Wc++0x-compat using a #pragma.
|
||||||
|
|
Loading…
Reference in New Issue