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
November 01, 2005

An Efficient Variant Type

(Page 5 of 7)

November, 2005: An Efficient Variant Type

Listing 4



  union object_holder
  {
    // used fields
    char buffer[ANY_BUFFER_SIZE];
    void* pointer;
    // the following is just to help assure alignment
    boost::detail::max_align  alignment_dummy_[any_buffer_elements];
  };

Previous Page | 1 | 2 | 3 | 4 | 5 | 6 | 7 Next Page
TOP 5 ARTICLES
No Top Articles.



MICROSITES
FEATURED TOPIC

ADDITIONAL TOPICS

INFO-LINK