hovverd.com - Hovverd

Description: Interesting things found or created by @v3n.

Example domain paragraphs

By Hovverd under c++ bug msvc

I recently ran into an interesting Visual Studio bug. Namely, if you have nested namespaces and are making us of a using statement, it seems to mess up namespace lookup.

missing type specifier - int assumed . Note : C ++ does not support default - int syntax error : missing ',' before '&' ' void A :: B :: Y :: fun ( X & ) ' : overloaded member function not found in ' A :: B :: Y ' It seems to overwrite the root namespace scoping (in this case, A , making A::X not found). This is fixable by explicitly writing all namespaces like such: