// ************************************************************************** // * This file is part of the zen::Xml project. It is distributed under the * // * Boost Software License: http://www.boost.org/LICENSE_1_0.txt * // * Copyright (C) Zenju (zenju AT gmx DOT de) - All Rights Reserved * // ************************************************************************** #include #include #include #include #include #include #include "xml.h" using namespace zen; namespace { void unit_test() { class Dummy {}; //compile time checks only assert_static(!IsStlContainer ::value); assert_static(!IsStlContainer ::value); assert_static(!IsStlContainer ::value); assert_static(!IsStlContainer ::value); assert_static(IsStlContainer> ::value); assert_static(IsStlContainer> ::value); assert_static(IsStlContainer> ::value); assert_static((IsStlContainer> ::value)); assert_static((IsStlContainer>::value)); assert_static(IsStlContainer > ::value); assert_static((IsStlPair > ::value)); assert_static(!IsStlPair ::value); assert_static(!IsStringLike::value); assert_static(!IsStringLike::value); assert_static(!IsStringLike::value); assert_static(!IsStringLike::value); assert_static(IsStringLike::value); assert_static(IsStringLike::value); assert_static(IsStringLike::value); assert_static(IsStringLike::value); assert_static(IsStringLike::value); assert_static(IsStringLike::value); assert_static(IsStringLike::value); assert_static(IsStringLike::value); assert_static(IsStringLike::value); assert_static(IsStringLike::value); assert_static(IsStringLike::value); assert_static(IsStringLike::value); assert_static(IsStringLike::value); assert_static(IsStringLike::value); assert_static(IsStringLike::value); assert_static(IsStringLike::value); assert_static(IsStringLike::value); assert_static(IsStringLike::value); assert_static(IsStringLike::value); assert_static(IsStringLike::value); assert_static(IsStringLike::value); assert_static(IsStringLike::value); assert_static(IsStringLike::value); assert_static(IsStringLike::value); assert_static(!(IsSameType::Type, char>::value)); assert_static(!(IsSameType::Type, char>::value)); assert_static(!(IsSameType::Type, char>::value)); assert_static((IsSameType::Type, char>::value)); assert_static((IsSameType::Type, wchar_t>::value)); assert_static((IsSameType::Type, char>::value)); assert_static((IsSameType::Type, wchar_t>::value)); assert_static((IsSameType::Type, char>::value)); assert_static((IsSameType::Type, wchar_t>::value)); assert_static((IsSameType::Type, char>::value)); assert_static((IsSameType::Type, wchar_t>::value)); assert_static((IsSameType::Type, char>::value)); assert_static((IsSameType::Type, char>::value)); assert_static((IsSameType::Type, wchar_t>::value)); assert_static((IsSameType::Type, wchar_t>::value)); assert_static((IsSameType::Type, char>::value)); assert_static((IsSameType::Type, wchar_t>::value)); assert_static((IsSameType::Type, char>::value)); assert_static((IsSameType::Type, wchar_t>::value)); assert_static((IsSameType::Type, char>::value)); assert_static((IsSameType::Type, wchar_t>::value)); assert_static((IsSameType::Type, char>::value)); assert_static((IsSameType::Type, wchar_t>::value)); assert_static((IsSameType::Type, char>::value)); assert_static((IsSameType::Type, wchar_t>::value)); assert_static((IsSameType::Type, char>::value)); assert_static((IsSameType::Type, wchar_t>::value)); } }