Posts

Showing posts from March 27, 2019

Connection for controluser as defined in your configuration failed. - XAMPP

Image
0 I got this error when using XAMPP. MySQL said: Cannot connect: invalid settings. Connection for controluser as defined in your configuration failed. phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server. phpmyadmin xampp share | improve this question edited Mar 17 at 5:36 karel 60.6k 13 131 155 asked...

Meta programming: Declare a new struct on the fly

Image
14 1 Is it possible to declare a new type (an empty struct , or a struct without an implementation) on the fly? E.g. constexpr auto make_new_type() -> ???; using A = decltype(make_new_type()); using B = decltype(make_new_type()); using C = decltype(make_new_type()); static_assert(!std::is_same<A, B>::value, ""); static_assert(!std::is_same<B, C>::value, ""); static_assert(!std::is_same<A, C>::value, ""); A "manual" solution is template <class> struct Tag; using A = Tag<struct TagA>; using B = Tag<struct TagB>; using C = Tag<struct TagC>; or even struct A; struct B; struct C; but for templating / meta some magic make_new_type() function would be nice. Can something like that be possible now that sta...