Is 'int' a class defined in C++ standard library ?

From: Lord Labakudas (llabakudas_at_yahoo.com)
Date: 09/26/04


Date: 26 Sep 2004 14:43:41 -0700

Hi,

I have a very simple question. Is int a predefined class in the
standard C++ library. If yes, is it typedef'd as int somewhere ? I
wish to know this because, I wish to create a class that has all the
functionalities of int, but is also derived from another base class.
For example,

class Tuple: public Data, public int
{
   Tuple()
   {
     ;
   }

   ~Tuple()
   {
     ;
   }
};

I am definitely missing something here because this gives a
compilation error. Is there are better way to do this ?

Thanks in Advance,
Vijay.



Relevant Pages