access_private icon indicating copy to clipboard operation
access_private copied to clipboard

Addressing the limitation of the private class's constructor

Open schaumb opened this issue 2 years ago • 6 comments

with template variables and lambda, it can leak out the private constructors. gcc with c++20

clang with c++20

schaumb avatar Dec 15 '23 14:12 schaumb

MSVC is not C++ compliant, I created a ticket

schaumb avatar Dec 18 '23 10:12 schaumb

Hey, thanks again. It'd be great to have a PR for this as well. We could define a macro if clang or gcc has the required language features (or we could simply check if the standard is >=C++14).

martong avatar Dec 21 '23 10:12 martong

I created a C++20 fork from this repo. If someone has time to work with it, backport here.

schaumb avatar Jan 30 '24 22:01 schaumb

Okay, thank you. I am extending the readme to advertise your fork for C++20.

martong avatar Feb 01 '24 09:02 martong

Umm, not closing, since at some point we could backport to C++14.

martong avatar Feb 01 '24 09:02 martong