[CXX-481] adorn methods with noexcept where needed Created: 16/Jan/15  Updated: 24/Apr/15  Resolved: 10/Mar/15

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 0.1.0

Type: Improvement Priority: Minor - P4
Reporter: Adam Midvidy Assignee: Adam Midvidy
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: PM-123

 Description   

audit the C++11 driver for places that should say noexcept that currently don't, and apply where needed

Old description:A few methods in the legacy driver have dynamic exception specifiers such as:

OperationException::~OperationException
OperationException::what
sspiClientMechNew
sspiClientMechStop
~DBException::DBException
DBException::what
AssertionException::~AssertionException
SocketException::~SocketException

we should remove them, and consider replacing with a CXX11_NOEXCEPT macro that is defined to be the 'noexcept' operator on compilers that support it, and a no-op otherwise



 Comments   
Comment by Githook User [ 10/Mar/15 ]

Author:

{u'username': u'amidvidy', u'name': u'Adam Midvidy', u'email': u'amidvidy@gmail.com'}

Message: CXX-481 add missing noexcept to value
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/2ce34dd97394bfeef99e465553269e77a8fac757

Comment by Githook User [ 10/Mar/15 ]

Author:

{u'username': u'amidvidy', u'name': u'Adam Midvidy', u'email': u'amidvidy@gmail.com'}

Message: CXX-481 adorn all move constructors and move assignment operators with noexcept
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/d419c2abeba6e54bb5631b2bea244bbccbcd8cd6

Generated at Wed Feb 07 21:59:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.