Boost logo

Boost Users :

Subject: [Boost-users] ambigous bitshift operator for ubig64_t ?
From: Ákos Maróy (akos_at_[hidden])
Date: 2009-02-21 04:47:51


Hi,

I'm trying to compile the following code:

#include <boost/spirit/home/support/detail/integer/endian.hpp>

boost::integer::ubig64_t big_endian_value;

big_endian_value >> 1;

but I get:

error: ambiguous overload for 'operator>>' in 'big_endian_value >> 1'
note: candidates are: operator>>(long long unsigned int, int) <built-in>
../../usr/include/boost-1_38/boost/spirit/home/support/detail/integer/cover_operators.hpp:53:
note: long long unsigned int
boost::integer::operator>>(const boost::integer::endian<big, long long
unsigned int, 64u, unaligned>&, long long unsigned int)

what am I doing wrong?

(BTW, the same works with the >>= operator)

I'm doing this on Linux, gcc 4.1.2

Akos


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net