|
-
March 30th, 2003, 07:10 AM
#1
member methods overloading - have I gone stupid?
Hi ANYONE!
I'm using MS Visual Studio (I can only attribute this to the compiler), and have an overloaded method:
void FuncName(unsigned short id_num, Type_t &ret_val);
void FuncName(const char *id_name, Type_t &ret_val);
Where the "ret_val" may be found by it's numerical id (first func) or it's logical name (second).
When using the second method
FuncName("value_logical_name",ret_val);
I get a compiler error, that parameter one can not be converted from const char[] to unsigned short.
The only problem is that it is not constant!!! In some projects it will work, and in some it wont.
Does anybody have any idea why? Is it something with the project settings? WHAT?!
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|