C++/CLI and parameters

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does C++/CLI support default values or is it like C# where we have to use
overloading only?

I have some unmanaged methods with default values (I may not need them
thoough) I need to implement in my managed proxy class.
 
Does C++/CLI support default values or is it like C# where we have to use
overloading only?

I have some unmanaged methods with default values (I may not need them
thoough) I need to implement in my managed proxy class.

I haven't seen support for them in the public spec.... haven't read it all
that carefully, though...
 
Does C++/CLI support default values or is it like C# where we have to
use
I haven't seen support for them in the public spec.... haven't read it all
that carefully, though...

there is no such support as I know.
if i'm wrong please make me correct
Regards, Robert
 
SunFire said:
there is no such support as I know.
if i'm wrong please make me correct

You're all correct. Default parameters are not supported in member functions
of CLR class types. This is more to do with encoding issues with CLR
metadata than problems with the compiler.
 
Back
Top