[ https://issues.apache.org/activemq/browse/AMQCPP-19?page=all ]

Timothy Bish closed AMQCPP-19.
------------------------------

    Resolution: Fixed

The use of exception specifications was done intentionally by the developers of 
ActiveMQ cpp.  We believe that its good practice and will continue to do so.  
The fact that the MS compiler feels it needs to warn you that it will ignore 
them is a shortcoming of that compiler, not the code.  

Thanks for you interest in activemq-cpp.

> Uuid class probably shouldn't use exception specifications
> ----------------------------------------------------------
>
>                 Key: AMQCPP-19
>                 URL: https://issues.apache.org/activemq/browse/AMQCPP-19
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>    Affects Versions: 1.0
>            Reporter: Albert Strasheim
>         Assigned To: Timothy Bish
>   Original Estimate: 30 minutes
>  Remaining Estimate: 30 minutes
>
> activemq/util/Uuid.h contains exception specifications. This causes the 
> Microsoft compiler to warn:
> G:\activemq/util/Guid.h(46) : warning C4290: C++ exception specification 
> ignored except to indicate a function is not __declspec(nothrow)
> In my experience, C++ code typically doesn't use exception specifications. 
> Instead the exceptions that can be thrown are simply documented with the 
> relevant doxygen tag.
> Some references:
> http://www.gotw.ca/publications/mill22.htm
> http://www.gotw.ca/gotw/082.htm
> http://www.boost.org/more/lib_guide.htm#Exception-specification

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to