diff --git a/string/example/rle_example.cpp b/string/example/rle_example.cpp index a6ec323..9caae2e 100644 --- a/string/example/rle_example.cpp +++ b/string/example/rle_example.cpp @@ -24,7 +24,7 @@ using namespace std; using namespace boost; // replace mark specification, specialize for a specific element type -template< typename T > T repeat_mark() { return std::numeric_limits::max(); }; +template< typename T > T repeat_mark() { return (std::numeric_limits::max)(); }; // Compression ----------------------------------------------------------------------- @@ -59,7 +59,7 @@ struct find_compressF { input_iterator_type It2=It++; - if ( It==End || Cnt>=std::numeric_limits::max() ) + if ( It==End || Cnt>=(std::numeric_limits)::max() ) { return result_type( MStart, It ); } diff --git a/string/test/Jamfile b/string/test/Jamfile index 99cbeef..3dbe393 100644 --- a/string/test/Jamfile +++ b/string/test/Jamfile @@ -17,7 +17,7 @@ DEPENDS all : test ; { test-suite algorithm/string - : [ run + : [ run trim_test.cpp : : :