You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I suggest removing 'explicit' from operator bool() const; in the .h file (ling 731, result::operator bool() const) so that at least the file will work on vs2012 where it's not supported. The affect on this on client code should be minimal.
FYI, looking at the bool() operator, I am not quite sure what it's functionality is. The implementation is a static_cast from a shared_ptr... Which basically says, return true if result is assigned.
Copied from original issue: lexicalunit/nanodbc#11
The text was updated successfully, but these errors were encountered:
I guess VS2012 didn't support that particular feature. I would recommend only defining NANODBC_USE_CPP11 if you have a compiler which fully supports the C++11 standard. Nanodbc should work just fine on VS2012 without needing NANODBC_USE_CPP11 to be defined. If you are getting this error when NANODBC_USE_CPP11 isn't defined, then that definitely needs to be fixed.
The functionality this provides is a simple way to test if a nanodbc::result object is valid. For example:
From @DraconPern on November 4, 2013 2:30
I suggest removing 'explicit' from operator bool() const; in the .h file (ling 731, result::operator bool() const) so that at least the file will work on vs2012 where it's not supported. The affect on this on client code should be minimal.
FYI, looking at the bool() operator, I am not quite sure what it's functionality is. The implementation is a static_cast from a shared_ptr... Which basically says, return true if result is assigned.
Copied from original issue: lexicalunit/nanodbc#11
The text was updated successfully, but these errors were encountered: