compile or not compile

Eljay Love-Jensen eljay@adobe.com
Thu Jul 1 20:54:00 GMT 2004


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



More information about the Gcc-help mailing list