default arguments for const ref parameters in extern C++ functions
    60rntogo 
    60rntogo at gmail.com
       
    Mon Sep 14 12:47:26 UTC 2020
    
    
  
On Monday, 14 September 2020 at 12:44:34 UTC, 60rntogo wrote:
> ---
> struct Foo
> {
>   int x;
> }
>
> extern(C++) void fun(const ref Foo foo = Foo(1));
> ---
I suppose this should have been:
---
extern(C++):
struct Foo
{
   int x;
}
void fun(const ref Foo foo = Foo(1));
---
Not that it changes the question in any way.
    
    
More information about the Digitalmars-d-learn
mailing list