Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatilibity with Boost 1.65 #79

Closed
wants to merge 2 commits into from

Conversation

jakobwilm
Copy link
Contributor

Newer Boost versions such as 1.65 (default Ubuntu 18.04) declare the virtual clone method in error_info_base. This makes this class abstract and not compile.

Newer Boost versions such as 1.65 (default Ubuntu 18.04) declare the virtual clone method in error_info_base. This makes this class abstract and not compile.
@@ -73,6 +73,8 @@ class error_info<Tag, error_info_sstream>: public exception_detail::error_info_b
_value._v << value;
}

error_info_base * clone() const {}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we not supposed to do something like that?

error_info_base * clone() const
{
  error_info* p = new error_info();
  *p = *this;
  return p;
}

To create a new instance with the same content.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, absolutely. That looks correct.

@simogasp
Copy link
Member

FYI in #78 I'm gonna get rid of all boost exception stuff and use simple std::exception.
We can merge this fix till then

@jakobwilm jakobwilm closed this Jun 22, 2018
@jakobwilm jakobwilm reopened this Jun 22, 2018
@fabiencastan
Copy link
Member

Created a new PR #82 with the discussed fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants