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

remove_cvref unavailable with c++17 #13

Closed
sethalves opened this issue Jun 16, 2021 · 1 comment
Closed

remove_cvref unavailable with c++17 #13

sethalves opened this issue Jun 16, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@sethalves
Copy link
Contributor

On Windows with Microsoft's clang:

clang version 11.0.0
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\Llvm\x64\bin

I get this:

./copper.h(1400,55): error: no member named 'remove_cvref_t' in namespace 'std'
COPPER_STATIC_ASSERT((std::is_same_v<std::remove_cvref_t, _detail::voidval_t>));
~~~~~^
./copper.h(49,82): note: expanded from macro 'COPPER_STATIC_ASSERT'
COPPER_GET_MACRO2(VA_ARGS, COPPER_STATIC_ASSERT2, COPPER_STATIC_ASSERT1)(VA_ARGS)
^~~~~~~~~~~
./copper.h(58,79): note: expanded from macro 'COPPER_STATIC_ASSERT1'
#define COPPER_STATIC_ASSERT1(condition) ::copper::_detail::static_assert_ifc()
^~~~~~~~~
./copper.h(1400,70): error: 'Rhs' does not refer to a value
COPPER_STATIC_ASSERT((std::is_same_v<std::remove_cvref_t, _detail::voidval_t>));
^
./copper.h(1394,20): note: declared here
template <typename Rhs, bool is_buffered, template <typename...> typename... Args>
^
etc

@sethalves sethalves added the bug Something isn't working label Jun 16, 2021
@atollk
Copy link
Owner

atollk commented Jul 2, 2021

Fixed by #14

@atollk atollk closed this as completed Jul 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants