Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

small fix (wrong construction otherwise for const char*)

  • Loading branch information...
commit 3e44bbf6a1fb42026af396894efde5f99ac47699 1 parent 13fe82a
@albertz authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  Return.h
View
1  Return.h
@@ -13,6 +13,7 @@ struct Return {
std::string errmsg;
Return(bool s = true) : success(s) {}
+ Return(const char* errm) : success(false), errmsg(errm) {}
Return(const std::string& errm) : success(false), errmsg(errm) {}
Return(const Return& r, const std::string& extmsg) : success(false) {
if(r) errmsg = extmsg;

0 comments on commit 3e44bbf

Please sign in to comment.
Something went wrong with that request. Please try again.