Web Hosting Unlimited Faster SSD IPv6 HTTP/2 + SSL Certificates
Ad High performance linux servers implementing ISPConfig open source control panel with newest connectivity, encryption and protocol support

Nested namespaces by classes

It is possible to nest a namespace inside another namespace.

Classes, structs and unions are also namespaces, despite they have other purpose.

Theoretically it should be possible to nest namespaces inside classes, structs and unions, what could be very useful.

template<typename Typename>
struct Struct{
 namespace shared{
  Typename variable;


 void function(){
   //shared variable is visible
   using namespace shared;
  //use special variable
  int variable;