//  (C) Copyright John Maddock 2000.
//  Permission to copy, use, modify, sell and
//  distribute this software is granted provided this copyright notice appears
//  in all copies. This software is provided "as is" without express or implied
//  warranty, and with no claim as to its suitability for any purpose.

//  See http://www.boost.org for most recent version including documentation.

/*
  Japanese Translation Copyright (C) 2003 mikari(Mika.N)<mikarim@m18.alpha-net.ne.jp>.
	
	オリジナルの、及びこの著作権表示が全ての複製の中に現れる限り、この文書の
	複製、利用、変更、販売そして配布を認める。このドキュメントは「あるがまま」
	に提供されており、いかなる明示的、暗黙的保証も行わない。また、
	いかなる目的に対しても、その利用が適していることを関知しない。
	
	本ライブラリのドキュメントを含む最新版に関しては、http://www.boost.org を参照せよ。
	日本語版ドキュメントに関しては、http://boost.cppll.jp を参照すること。
*/

#include <climits>
#include <boost/limits.hpp>
#include <boost/static_assert.hpp>

template <class UnsignedInt>
class myclass
{
private:
   BOOST_STATIC_ASSERT(sizeof(UnsignedInt) * CHAR_BIT >= 16);
   BOOST_STATIC_ASSERT(std::numeric_limits<UnsignedInt>::is_specialized
                        && std::numeric_limits<UnsignedInt>::is_integer
                        && !std::numeric_limits<UnsignedInt>::is_signed);
public:
   /* details here */
   // ココに実装の詳細を記述する
};

myclass<unsigned>      m1;   // this should be OK	// コンパイル可能でなければならない
//myclass<int>           m2; // this should fail	// コンパイルエラーが発生しなければならない
//myclass<unsigned char> m3; // and so should this	// 同上

int main()
{
   return 0;
}

