Skip to content

Commit 4b27466

Browse files
committed
s
1 parent 5909db5 commit 4b27466

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

simplecpp.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ namespace simplecpp {
8686
: mPtr(p)
8787
{}
8888

89+
#if defined(__GNUC__) || defined(_MSC_VER)
90+
explicit constness_ptr(std::nullptr_t)
91+
: mPtr(nullptr)
92+
{}
93+
#endif
94+
8995
constness_ptr<T> &operator=(T* p) {
9096
mPtr = p;
9197
return *this;

0 commit comments

Comments
 (0)