[
https://issues.apache.org/activemq/browse/AMQCPP-253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=55282#action_55282
]
Timothy Bish commented on AMQCPP-253:
-------------------------------------
The cleanest solution is to remove the INVALID_SOCKET_HANDLE entirely which is
what I committed to trunk today. It was used back when we didn't use APR for
the socket code. Its not needed any longer and a NULL suffices to set the
socket pointer to a default state.
A quick fix might be to just remove the static_cast and just go with a blind
cast:
{noformat}
socketHandle( (apr_socket_t*)INVALID_SOCKET_HANDLE )
{noformat}
This is what is done in the ServerSocket class, so if that's compiling for you
then you should be golden.
> Problems with compiler aCC on HPUX
> ----------------------------------
>
> Key: AMQCPP-253
> URL: https://issues.apache.org/activemq/browse/AMQCPP-253
> Project: ActiveMQ C++ Client
> Issue Type: Improvement
> Affects Versions: 3.0
> Environment: HP-UX gemma1 B.11.23 U 9000/800
> aCC: HP ANSI C++ B3910B A.03.77
> Reporter: Wolfgang.Klein
> Assignee: Timothy Bish
> Priority: Minor
> Fix For: 3.1
>
> Attachments: amq_cpp_30.tar, TcpSocket.cpp
>
>
> compile errors with native HP compiler
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.