FREE Subscription to Dr. Dobb’s Digest: Same Great Content, New Digital Edition
Site Archive (Complete)
C++
Email
Print
Reprint

add to:
Del.icio.us
Digg
Google
Furl
Slashdot
Y! MyWeb
Blink
September 01, 1998

Extending the Reference-Counting Pattern

(Page 4 of 5)
September 1998/Extending the Reference-Counting Pattern/Listing 2

Listing 2: HandleError class implementation file

#include "include/handle.h"

HandleError HandleError::no_error(0);

// max of 16 bits
HandleError HandleError:: unknown(65535); 

uint
HandleError::_allocate()
{
   static uint next = 0;
   return ++next;
}
//End of File
Previous Page | 1 | 2 | 3 | 4 | 5 Next Page
RELATED ARTICLES
No Related Articles
TOP 5 ARTICLES
No Top Articles.



MICROSITES
FEATURED TOPIC

ADDITIONAL TOPICS

INFO-LINK