divyang4481 / firebreath

Automatically exported from code.google.com/p/firebreath
0 stars 0 forks source link

void return type not supported for registerMethod-wired functions #34

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Consider a function with the following prototype:

void doSomething(void);

When a developer attempts to wire the method as below, a design-time 
compiler error occurs:

registerMethod("doSomething", make_method(this, &doSomething));

The compiler error reads:
error C2664: 'FB::variant::variant(const char*)': cannot convert parameter 
1 from 'void' to 'const char*'

What is the expected output? What do you see instead?

It would be nice if void return types were supported.

What version of the product are you using? On what operating system?

Jan 21 RC3, Vista, VS2008

Original issue reported on code.google.com by brandonh...@gmail.com on 19 Mar 2010 at 11:03

GoogleCodeExporter commented 8 years ago
Support for methods returning void was added after RC3. Can you update to the 
current
default branch and confirm?

Original comment by georg.fritzsche on 20 Mar 2010 at 11:38

GoogleCodeExporter commented 8 years ago

Original comment by georg.fritzsche on 22 Mar 2010 at 12:23

GoogleCodeExporter commented 8 years ago

Original comment by georg.fritzsche on 24 Mar 2010 at 1:26