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

Fix for virtual-destructor error? #275

Closed
wants to merge 1 commit into from
Closed

Conversation

breznak
Copy link
Member

@breznak breznak commented Feb 21, 2019

fixes #274

@@ -105,7 +105,8 @@ class SDR_MetricsHelper_ {
* streaming data. This class deals with finding a suitable weight for each
* sample.
*/
virtual void callback( SDR &dataSource, Real alpha ) = 0;
virtual void callback( SDR &dataSource, Real alpha )
{ NTA_THROW << "Virtual method 'SDR_MetricsHelper_.callback' called!"; }
Copy link
Member Author

Choose a reason for hiding this comment

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

I thinks the original was valid C++ code, so unless we find no other way, I'd prefer not to merge this.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yea I don't really understand underlying issue and don't want to merge until I do. I wonder it has something to do with the compiler version?

@pepedocs is using
-- CMAKE_CXX_COMPILER_ID= AppleClang
-- CMAKE_CXX_COMPILER_VERSION=10.0.0.10001044

Our CI is using:
-- CMAKE_CXX_COMPILER_ID= AppleClang
-- CMAKE_CXX_COMPILER_VERSION=9.0.0.9000038

Copy link
Member Author

Choose a reason for hiding this comment

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

PR #220 bumps our CI to the latest OSX (10), so let's get that PR to merge and we can replicate this issue.

@breznak
Copy link
Member Author

breznak commented Feb 22, 2019

replaced by #276

@breznak breznak closed this Feb 22, 2019
@breznak breznak deleted the virtual-distructors branch February 22, 2019 05:26
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.

Build error OSX Mojave, PyBindings, virtual destructors
2 participants