1// Boost.Units - A C++ library for zero-overhead dimensional analysis and
2// unit/quantity manipulation and conversion
3//
4// Copyright (C) 2003-2008 Matthias Christian Schabel
5// Copyright (C) 2008 Steven Watanabe
6//
7// Distributed under the Boost Software License, Version 1.0. (See
8// accompanying file LICENSE_1_0.txt or copy at
9// http://www.boost.org/LICENSE_1_0.txt)
10
11/**
12\file
13
14\brief fail_base_dimension.cpp
15
16\details
17make sure that trying to use the same ordinal for multiple
18base dimensions fails.
19
20Output:
21@verbatim
22@endverbatim
23**/
24
25#include <boost/units/base_dimension.hpp>
26
27struct dim1 : boost::units::base_dimension<dim1, 1> {};
28struct dim2 : boost::units::base_dimension<dim2, 1> {};
29
30int main()
31{
32}
33

source code of boost/libs/units/test/fail_base_dimension.cpp