$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-users] using uint8_t & the like on open solaris
From: Maróy Ãkos (akos_at_[hidden])
Date: 2009-11-26 18:40:57
Hi,
I'm have a silly problem of trying to use the integer type definitions
in boost/cstdint.hpp in the following way:
#include <boost/cstdint.hpp>
using namespace boost;
uint8_t value;
on other platforms I've tried, this seems to be OK, but on OpenSolaris,
with gcc 3 I get an error that uint8_t does not name a type, with gcc 4,
it will say that uint8_t is ambiguous, since there's a typedef also in
/usr/include/sys/int_types.h
of course the above works the following way:
boost::uint8_t value;
but I really wanted to avoid having to specify the boost namespace all
the time.
Akos