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

Add workaround for libstdc++ < 5.0 #8

Closed
gnzlbg opened this issue Jan 19, 2016 · 1 comment
Closed

Add workaround for libstdc++ < 5.0 #8

gnzlbg opened this issue Jan 19, 2016 · 1 comment

Comments

@gnzlbg
Copy link

gnzlbg commented Jan 19, 2016

libstdc++ < 5.0 doesn't provide std::is_trivially_copyable but the old proposed type traits. The following workaround can be added to support libstdc++ < 5.0

#if defined(__GLIBCXX__) && __GLIBCXX__ < 20150801
namespace std {
template <typename T>
struct is_trivially_copyable : integral_constant<bool, __has_trivial_copy(T)> {
};
}  // namespace std
#endif  // GLIBCXX macro
@mpark
Copy link
Owner

mpark commented May 12, 2017

Closing this as is_trivially_copyable is no longer used.

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

2 participants