Skip to content

Commit

Permalink
Fix compilation with C++11.
Browse files Browse the repository at this point in the history
  • Loading branch information
mordante committed Jun 29, 2014
1 parent 1ca23e3 commit c1b73e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fake_unit_ptr.hpp
Expand Up @@ -81,7 +81,7 @@ private :
public:
#ifdef HAVE_CXX11
explicit operator bool() const
{ return unit_; }
{ return unit_.get(); }
#else
operator safe_bool() const
{ return unit_ ? &safe_bool_impl::nonnull : NULL; }
Expand Down

0 comments on commit c1b73e0

Please sign in to comment.