You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
struct Contain
{
Contain() = delete; //Enable the default constructor to make it work
explicit Contain(std::string contain) : m_Contain(std::move(contain)){}
std::string m_Contain;
};
Description
struct Contain
{
Contain() = delete; //Enable the default constructor to make it work
explicit Contain(std::string contain) : m_Contain(std::move(contain)){}
std::string m_Contain;
};
NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(Contain, m_Contain);
struct Container
{
std::string m_Name;
std::vector m_Collection;
};
NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(Container, m_Name, m_Collection); //Compiler error
Reproduction steps
Compiler error - can be easily reproduce since I have added snippet code
Expected vs. actual results
Compiler error
Minimal code example
Error messages
Compiler and operating system
Windows 10
Library version
3.11.3
Validation
develop
branch is used.The text was updated successfully, but these errors were encountered: