Can't seem to compare two different typesafe enum objects

Issue #13 new
Lynden Shields repo owner created an issue

e.g:

                        BoxType wood = BoxType::TREE_WOOD;
                        BoxType sand = BoxType::SAND;
                        if (wood == sand) //fails compilation
                        {
                            std::cout << "top kek" << std::endl;
                        }

Comments (0)

  1. Log in to comment