replace using-directive with using-declarations to avoid ambiguity on IRIX CC

[SVN r8557]
This commit is contained in:
Jens Maurer
2001-01-11 23:00:32 +00:00
parent 35dbbde437
commit 4b2fcb5c36

View File

@ -17,8 +17,6 @@
#include <iostream>
#include <boost/integer.hpp>
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() );