Date: Tue, 13 Jun 2006 19:28:07 +0100
From: "John Maddock" < john@johnmaddock.co.uk>

What's wrong with:

boost::alignment_of<unknown_struct>::value   ?

You can feed the result into type_with_alignment<> if that's what you want
as well.

John.


if unknown_struct is an incomplete type (which is what I meant, and should have said), alignment_of doesn't compile.

Tony