From 4b2fcb5c36ea1d45154a4cb86409ea99d51954f7 Mon Sep 17 00:00:00 2001 From: Jens Maurer Date: Thu, 11 Jan 2001 23:00:32 +0000 Subject: [PATCH] replace using-directive with using-declarations to avoid ambiguity on IRIX CC [SVN r8557] --- integer_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integer_test.cpp b/integer_test.cpp index 2c2ba1b..1bf96ba 100644 --- a/integer_test.cpp +++ b/integer_test.cpp @@ -17,8 +17,6 @@ #include #include -using namespace boost; // not the best practice, but useful for testing - namespace { void test( long ) { std::cout << "long\n"; } @@ -39,6 +37,8 @@ namespace boost int main() { + using boost::int_t; + using boost::uint_t; std::cout << 32 << ' '; test( int_t<32>::least() ); std::cout << 31 << ' '; test( int_t<31>::least() ); std::cout << 30 << ' '; test( int_t<30>::least() );