Skip to content

Commit

Permalink
Corrected the base construction in the pcp::exception copy constructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
pcolby committed Feb 14, 2014
1 parent 3089af8 commit 52a392e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/pcp-cpp/exception.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ class exception : public std::exception {
}

exception(const pcp::exception &other)
: pm_error_code(other.error_code()),
: std::exception(other),
pm_error_code(other.error_code()),
message(other.what())
{
}
Expand Down

0 comments on commit 52a392e

Please sign in to comment.