git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@978
270642c3-0616-0410-b53a-bc976706d245
#define HH_SENF_Socket_Protocols_BSDSocketAddress_ 1
// Custom includes
+#include <boost/type_traits/alignment_of.hpp>
+#include <boost/type_traits/type_with_alignment.hpp>
#include "../../Utils/safe_bool.hh"
#include <sys/socket.h>
#include <iostream>
private:
- socklen_t len_;
+ union {
+ socklen_t len_;
+ boost::type_with_alignment<boost::alignment_of<struct sockaddr_storage>::value> _;
+ };
};
/** \brief Safe socket address down-cast