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

struct with two SFINAE parameters crashes #823

Open
anarthal opened this issue Jan 27, 2025 · 0 comments
Open

struct with two SFINAE parameters crashes #823

anarthal opened this issue Jan 27, 2025 · 0 comments

Comments

@anarthal
Copy link

#include <type_traits>

namespace boost::mysql {

template <class T, class En1 = void, class En2 = void>
struct writable_field_traits
{
};

template <class T>
struct writable_field_traits<T, typename std::enable_if<std::is_same<T, int>::value>::type, void>
{
};

template <class T>
struct writable_field_traits<T, void, typename std::enable_if<std::is_same<T, bool>::value>::type>
{
};

}  // namespace boost::mysql
MrDocs
    C++ Documentation Tool
    version: 0.0.3
    build: 93d5d102c39b093d402ae3f95302fd734c8de616
    built with LLVM 20.0.0git

Spotted by accident, since this code is private and shouldn't appear in the final documentation. Does not block me.

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

1 participant