R
RA Scheltema
Hi all,
I have the following code:
namespace A {
inline void func(int) { ...; }
inline void func(float) { ...; }
inline void func(char) { ...; }
}
namespace B {
inline void func(double) { ...; }
inline myApp()
{
int a;
func(a); // error here
}
}
Which results in the compile-error:
"cannot convert parameter 1 from 'int' to 'double' ...
Which I guess means that all the definitions of func in namespace A are
forgotten in namespace B. Is this something general for c++ or is it
specific for my microsoft visual c++ 6.0 . And more importantly, is there a
work-around / solution ?
thanks ahead,
Richard
I have the following code:
namespace A {
inline void func(int) { ...; }
inline void func(float) { ...; }
inline void func(char) { ...; }
}
namespace B {
inline void func(double) { ...; }
inline myApp()
{
int a;
func(a); // error here
}
}
Which results in the compile-error:
"cannot convert parameter 1 from 'int' to 'double' ...
Which I guess means that all the definitions of func in namespace A are
forgotten in namespace B. Is this something general for c++ or is it
specific for my microsoft visual c++ 6.0 . And more importantly, is there a
work-around / solution ?
thanks ahead,
Richard