コード例 #1
0
ファイル: object_impl.hpp プロジェクト: vinzenz/fcppt
fcppt::math::dim::object<
	T,
	N,
	S
>::object(
	Args const &..._args
)
:
	storage_{{
		_args...
	}}
{
	FCPPT_MATH_DETAIL_ASSERT_STATIC_STORAGE(
		S
	);

	static_assert(
		sizeof...(
			Args
		)
		==
		N,
		"Wrong number of parameters"
	);
}
コード例 #2
0
ファイル: object_impl.hpp プロジェクト: vinzenz/fcppt
fcppt::math::dim::object<
	T,
	N,
	S
>::object(
	fcppt::no_init const &
)
// Don't initialize storage_
{
	FCPPT_MATH_DETAIL_ASSERT_STATIC_STORAGE(
		S
	);
}
コード例 #3
0
ファイル: object_impl.hpp プロジェクト: freundlich/fcppt
fcppt::math::matrix::object<
	T,
	R,
	C,
	S
>::object(
	Args const &..._args
)
:
	storage_(
		fcppt::math::matrix::detail::init_storage(
			std::array<
				row_type,
				sizeof...(
					Args
				)
			>{{
				_args...
			}}
		)
	)
{

	FCPPT_MATH_DETAIL_ASSERT_STATIC_STORAGE(
		S
	);

	static_assert(
		sizeof...(
			Args
		)
		==
		static_rows::value,
		"Wrong number of rows"
	);
}