Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-10-12 13:47:13


Daniel Schlyder wrote:

> BTW, shouldn't the line in mutex.inl that reads
>
> OSVERSIONINFO version_info = {sizeof(OSVERSIONINFO)};

This is an idiomatic way to initialize the first member to
sizeof(OSVERSIONINFO) and the rest to zero.

> be replaced with
>
> OSVERSIONINFO version_info;
> version_info.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);

This initializes dwOSVersionInfoSize to sizeof(OSVERSIONINFO) and leaves the
rest uninitialized.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk