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

/usr/include/tbb/pipeline.h:328:74: error: 'has_trivial_copy_constructor' is not a member of 'std' #12

Closed
nschloe opened this issue Jan 31, 2017 · 4 comments

Comments

@nschloe
Copy link

nschloe commented Jan 31, 2017

A recent Debian test with GCC7 failed with the TBB compilation error

/usr/include/tbb/pipeline.h:328:74: error: 'has_trivial_copy_constructor' is not a member of 'std'

(Coming from
https://github.com/01org/tbb/blob/a602c7dd54ca5e1d6b5a6b8e3289f0f70fc466a9/include/tbb/pipeline.h#L326.)

@turbo
Copy link

turbo commented Feb 5, 2017

From the GCC 7 WIP Docs:

The non-standard C++0x type traits has_trivial_default_constructor, has_trivial_copy_constructor and has_trivial_copy_assign have been removed.

This trait is not going to be part of GCC moving forward and is correctly marked as "not in std".

@daniel-j-h
Copy link

I just encountered the same issue with GCC 7.1 and a TBB release from 2015. Here's the code:

GCC 7.1 works fine with the latest release (2017 U7 atm) and probably all releases from 2017.

@akukanov
Copy link

The code in pipeline.h was fixed to use std::is_trivially_copyable when available as long as three years ago in TBB 4.3. The code still uses has_trivial_copy_constructor, but under preprocessor conditions that only allow its use with old compilers. Since then there were many other fixes and improvements for C++11 and newest compilers, so I highly recommend to update the version of TBB that you use.

@nschloe
Copy link
Author

nschloe commented Jun 30, 2017

Thanks for the comment. I'll see what I can do to update Debian's TBB version.

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

No branches or pull requests

4 participants