Chris@16: // Boost.Range library Chris@16: // Chris@16: // Copyright Thorsten Ottosen 2003-2004. Use, modification and Chris@16: // distribution is subject to the Boost Software License, Version Chris@16: // 1.0. (See accompanying file LICENSE_1_0.txt or copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt) Chris@16: // Chris@16: // For more information, see http://www.boost.org/libs/range/ Chris@16: // Chris@16: Chris@16: #ifndef BOOST_RANGE_DETAIL_SIZER_HPP Chris@16: #define BOOST_RANGE_DETAIL_SIZER_HPP Chris@16: Chris@101: #if defined(_MSC_VER) Chris@16: # pragma once Chris@16: #endif Chris@16: Chris@16: #include Chris@16: #include Chris@16: Chris@16: namespace boost Chris@16: { Chris@16: ////////////////////////////////////////////////////////////////////// Chris@16: // constant array size Chris@16: ////////////////////////////////////////////////////////////////////// Chris@16: Chris@16: template< typename T, std::size_t sz > Chris@16: char (& sizer( const T BOOST_RANGE_ARRAY_REF()[sz] ) )[sz]; Chris@16: Chris@16: template< typename T, std::size_t sz > Chris@16: char (& sizer( T BOOST_RANGE_ARRAY_REF()[sz] ) )[sz]; Chris@16: Chris@16: } // namespace 'boost' Chris@16: Chris@16: #endif