::> HB> friend functions work perfectly, but trying to make a whole class a
::> HB> friend doesn't. :(
::> HB> Any solutions? (besides deriving the *Str classes from LapTimer,
've
::> HB> considered it but it adds some additional headaches I'd rather not
::> HB> deal with at present)
::> The code you provided compiles just fine on VC++ (changing the
::> Timer_t class designation to something that's defined). And yes,
the original code has it as:
typedef clock_t Timer_t;
::> your friend classes ought to be able to access private and
::> protected members of the class for which it is a friend.
It's *supposed* to, but apparently BC45 don't see it that way :(
::> It seems like you're up the creek sans the proverbial paddle...
Nah, I just consolidated, and made the orginal class derived from fstream
as well, moved the functionality of the other 2 to it, and got rid of the
excess baggage of the other 2 stream classes...
# Herbert Bushong harchon@centuryinter.net [TEAM OS/2]
- Blackbeard's BBS Intelec: 239:600/0
+ Fido: 1:19/19 http://www.intelec.com/software/
---
RM 1.31 2508 Mistress: something between a mister and a matteress
---------------
* Origin: Blackbeard's BBS - Ville Platte, LA - 318-468-3385 (1:19/19)
|