Browse files

small fix (wrong construction otherwise for const char*)

  • Loading branch information...
1 parent 13fe82a commit 3e44bbf6a1fb42026af396894efde5f99ac47699 @albertz committed Mar 2, 2011
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.