1// (C) Copyright John Maddock 2001. 2// Use, modification and distribution are subject to the 3// Boost Software License, Version 1.0. (See accompanying file 4// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 5 6// See http://www.boost.org/libs/config for the most recent version. 7 8// MACRO: BOOST_NO_STD_DISTANCE 9// TITLE: std::distance 10// DESCRIPTION: The platform does not have a conforming version of std::distance. 11 12#include <algorithm> 13#include <iterator> 14 15 16namespace boost_no_std_distance{ 17 18int test() 19{ 20 const char* begin = 0; 21 const char* end = 0; 22 if(std::distance(begin, end)) return -1; 23 return 0; 24} 25 26} 27 28 29 30 31 32