Subject: [Boost-bugs] [Boost C++ Libraries] #7054: Boost ASIO boolean class is considered int
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-06-29 14:22:51
#7054: Boost ASIO boolean class is considered int
-------------------------------------------------+--------------------------
Reporter: Curtis Stacey <splertiki@â¦> | Owner: chris_kohlhoff
Type: Bugs | Status: new
Milestone: To Be Determined | Component: asio
Version: Boost 1.46.1 | Severity: Showstopper
Keywords: |
-------------------------------------------------+--------------------------
I am trying to use boost alongside the oracle occi libraries. I have ran
into an issue when using asio.hpp with the occi.h libraries. There is a
definition in the occi files that defines boolean to int, and boost
defines boolean as a class.
The int overrides the class declaration and throws lots of errors on
compilation due to this.
I am using 1.46 in visual studio 2010 as reference and updating to 1.50
may not be an option.
Is there any work around available? Is this something that I should be
taking up with oracle instead?
sample errors:
c:\mas3p_v5\include\boost\asio\detail\socket_option.hpp(34): error C2332:
'class' : missing tag name
c:\mas3p_v5\include\boost\asio\detail\socket_option.hpp(34): error C3306:
'boost::asio::detail::socket_option::<unnamed-tag>': unnamed class
template is not allowed
c:\mas3p_v5\include\boost\asio\detail\socket_option.hpp(34): error C2628:
'boost::asio::detail::socket_option::<unnamed-tag>' followed by 'int' is
illegal (did you forget a ';'?)
c:\mas3p_v5\include\boost\asio\detail\socket_option.hpp(35): error C2143:
syntax error : missing ';' before '{'
c:\mas3p_v5\include\boost\asio\detail\socket_option.hpp(35): error C2447:
'{' : missing function header (old-style formal list?)
c:\mas3p_v5\include\boost\asio\socket_base.hpp(104): error C2589: 'int' :
illegal token on right side of '::'
c:\mas3p_v5\include\boost\asio\socket_base.hpp(104): error C2589: 'int' :
illegal token on right side of '::'
c:\mas3p_v5\include\boost\asio\socket_base.hpp(104): error C2059: syntax
error : '::'
c:\mas3p_v5\include\boost\asio\socket_base.hpp(105): error C2238:
unexpected token(s) preceding ';'
c:\mas3p_v5\include\boost\asio\socket_base.hpp(137): error C2589: 'int' :
illegal token on right side of '::'
c:\mas3p_v5\include\boost\asio\socket_base.hpp(137): error C2589: 'int' :
illegal token on right side of '::'
c:\mas3p_v5\include\boost\asio\socket_base.hpp(137): error C2059: syntax
error : '::'
c:\mas3p_v5\include\boost\asio\socket_base.hpp(138): error C2238:
unexpected token(s) preceding ';'
c:\mas3p_v5\include\boost\asio\socket_base.hpp(170): error C2589: 'int' :
illegal token on right side of '::'
c:\mas3p_v5\include\boost\asio\socket_base.hpp(170): error C2589: 'int' :
illegal token on right side of '::'
c:\mas3p_v5\include\boost\asio\socket_base.hpp(170): error C2059: syntax
error : '::'
c:\mas3p_v5\include\boost\asio\socket_base.hpp(171): error C2238:
unexpected token(s) preceding ';'
c:\mas3p_v5\include\boost\asio\socket_base.hpp(203): error C2589: 'int' :
illegal token on right side of '::'
c:\mas3p_v5\include\boost\asio\socket_base.hpp(203): error C2589: 'int' :
illegal token on right side of '::'
c:\mas3p_v5\include\boost\asio\socket_base.hpp(203): error C2059: syntax
error : '::'
c:\mas3p_v5\include\boost\asio\socket_base.hpp(204): error C2238:
unexpected token(s) preceding ';'
c:\mas3p_v5\include\boost\asio\socket_base.hpp(369): error C2589: 'int' :
illegal token on right side of '::'
c:\mas3p_v5\include\boost\asio\socket_base.hpp(369): error C2589: 'int' :
illegal token on right side of '::'
c:\mas3p_v5\include\boost\asio\socket_base.hpp(369): error C2059: syntax
error : '::'
c:\mas3p_v5\include\boost\asio\socket_base.hpp(370): error C2238:
unexpected token(s) preceding ';'
c:\mas3p_v5\include\boost\asio\socket_base.hpp(439): error C2589: 'int' :
illegal token on right side of '::'
Thanks,
Curtis
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7054> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC