forked from boostorg/integer
replace using-directive with using-declarations to avoid ambiguity on IRIX CC
[SVN r8557]
This commit is contained in:
@ -17,8 +17,6 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <boost/integer.hpp>
|
#include <boost/integer.hpp>
|
||||||
|
|
||||||
using namespace boost; // not the best practice, but useful for testing
|
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
void test( long ) { std::cout << "long\n"; }
|
void test( long ) { std::cout << "long\n"; }
|
||||||
@ -39,6 +37,8 @@ namespace boost
|
|||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
|
using boost::int_t;
|
||||||
|
using boost::uint_t;
|
||||||
std::cout << 32 << ' '; test( int_t<32>::least() );
|
std::cout << 32 << ' '; test( int_t<32>::least() );
|
||||||
std::cout << 31 << ' '; test( int_t<31>::least() );
|
std::cout << 31 << ' '; test( int_t<31>::least() );
|
||||||
std::cout << 30 << ' '; test( int_t<30>::least() );
|
std::cout << 30 << ' '; test( int_t<30>::least() );
|
||||||
|
Reference in New Issue
Block a user