Specifying C++ symbols in C++ namespaces
    Walter Bright 
    newshound2 at digitalmars.com
       
    Sat Apr  5 14:43:06 PDT 2014
    
    
  
On 4/5/2014 2:31 PM, Tove wrote:
> How could this common pattern look?
> std::string
> boost::fun(std::string arg)
>
> alias cpp    = extern (C++, namespace = std);
> alias boost = extern (C++, namespace = boost);
>
> cpp.string
> boost.fun(cpp.string arg)
>
> ?
extern (C++, namespace = std) {
     struct string { ... }
}
extern (C++, namespace = boost) {
     void fun(std.string arg);
}
    
    
More information about the Digitalmars-d
mailing list