Boost logo

Boost :

Subject: Re: [boost] [preprocessor] Sequences vs. All Other Data Structures
From: Brian Wood (woodbrian77_at_[hidden])
Date: 2012-05-02 03:36:34

I guess this thread was largely about communicating some things
to Microsoft. I have an item to add to the list. I'm not sure of the
terminology for this but it is supported in some of the newer versions
of g++, but not in the version of VS 11 that I have. The code shown
below is available here:>.

This snippet is from
                  , byteOrder(most_significant_first)
                  , byteOrder(least_significant_first)

and this from cmwAmbassador.hh

  ::cmw::ReceiveBufferTCPCompressed<LeastSignificantFirst> cmwBuf; #else
  ::cmw::ReceiveBufferTCPCompressed<SameFormat> cmwBuf; #endif

  uint8_t const byteOrder;

I want to rewrite that as the following in the .hh file.

  ::cmw::ReceiveBufferTCPCompressed<LeastSignificantFirst> cmwBuf;
  uint8_t const byteOrder = most_significant_first;
  ::cmw::ReceiveBufferTCPCompressed<SameFormat> cmwBuf;
  uint8_t const byteOrder = least_significant_first; #endif

and be able to get rid of the ifdef in the .cc file. Microsoft:
please add support for this and let me know when it is available.

Brian Wood
Ebenezer Enterprises <>

Boost list run by bdawes at, gregod at, cpdaniel at, john at