Added trivial docs change, based on user suggestion, and brought example code into synch.

[SVN r34874]
This commit is contained in:
John Maddock
2006-08-11 18:14:13 +00:00
parent 48b6934f7f
commit c68b2114de
3 changed files with 13 additions and 7 deletions

View File

@ -13,8 +13,8 @@ template <class UnsignedInt>
class myclass
{
private:
BOOST_STATIC_ASSERT(sizeof(UnsignedInt) * CHAR_BIT >= 16);
BOOST_STATIC_ASSERT(std::numeric_limits<UnsignedInt>::is_specialized
BOOST_STATIC_ASSERT((std::numeric_limits<UnsignedInt>::digits >= 16)
&& std::numeric_limits<UnsignedInt>::is_specialized
&& std::numeric_limits<UnsignedInt>::is_integer
&& !std::numeric_limits<UnsignedInt>::is_signed);
public:
@ -30,3 +30,4 @@ int main()
return 0;
}