This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: compile or not compile
Hi Karol,
Okay, then do this:
-----------------------------
// SECOND_CASE
typedef int my_int;
class ALibraryClass
{
public:
int foo(const my_int&)
{
return 0;
}
int foo(const bool&)
{
return 0;
}
};
class BClientClass
{
public:
enum Items
{
item1=1000,
item2=2000
};
void test()
{
ALibraryClass a;
a.foo(int(BClientClass::item1));
}
};
int main()
{
BClientClass b;
b.test();
return 0;
}
-----------------------------
And everything should work as desired.
HTH,
--Eljay