Menu
  • HOME
  • TAGS

C++: Creating a local copy of an Object

c++,c++11,sqlanywhere,ultralite

As per my understanding function conn->GetLastError() returns a pointer of ULError and need to check is the return pointer is null or not. This will work for you. const ULError *error = conn->GetLastError(); if (error){} Since C++11 you can do as follows instead comparing with NULL if( error != nullptr)...