Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!uunet!microsoft!jimad From: jimad@microsoft.UUCP (Jim ADCOCK) Newsgroups: comp.lang.c++ Subject: Re: Transparent int class Message-ID: <58301@microsoft.UUCP> Date: 17 Oct 90 17:17:16 GMT References: Reply-To: jimad@microsoft.UUCP (Jim ADCOCK) Distribution: comp Organization: Microsoft Corp., Redmond WA Lines: 7 In article matthew@hydra.ua.oz.au (Matthew Donaldson) writes: >I am not sure that this can be done in C++, but I am trying to make a >class that looks exactly like an int (or as much so as possible), but >inside works differently.... See Hansen "The C++ Answer Book" pg 252 for the "right" way to implement an "Int" class. [Many other sources I've read get this "wrong."]