Opened 7 years ago

#12080 new Bugs

Boost:asio::address incompatible 32 and 64 bit

Reported by: max_shifrin@… Owned by: chris_kohlhoff
Milestone: To Be Determined Component: asio
Version: Boost 1.53.0 Severity: Problem
Keywords: 32bit, 64bit Cc:

Description

When using g++ (GCC) 4.8.2 20140120 (Red Hat 4.8.2-16) The serialized size of boost::asio::ip::address differs between 32 and 64 bit compilations.

When compiled in 32 bit the size of the structure is 28 bytes, and when compiled in 64 bit the size of the structure is 32 bytes.

I guess it should be 32 bytes in both cases, to be inter-operable and avoid page alignment issues.

Change History (0)

Note: See TracTickets for help on using tickets.