Skip to content

Commit

Permalink
Merge pull request #506 from arcadiaphy/fix_release
Browse files Browse the repository at this point in the history
Add noexcept in DataIter, InputSplit
  • Loading branch information
szha committed Mar 2, 2019
2 parents 4c5ad9e + 0d55a66 commit 55f3c7b
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions include/dmlc/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <string>
#include <sstream>
#include <mutex>
#include <utility>
#include "./logging.h"

namespace dmlc {
Expand Down
1 change: 1 addition & 0 deletions include/dmlc/concurrency.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <mutex>
#include <vector>
#include <condition_variable>
#include <utility>
#include "dmlc/base.h"

namespace dmlc {
Expand Down
2 changes: 1 addition & 1 deletion include/dmlc/data.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ template<typename DType>
class DataIter {
public:
/*! \brief destructor */
virtual ~DataIter(void) {}
virtual ~DataIter(void) DMLC_THROW_EXCEPTION {}
/*! \brief set before first of the item */
virtual void BeforeFirst(void) = 0;
/*! \brief move to next item */
Expand Down
2 changes: 1 addition & 1 deletion include/dmlc/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ class InputSplit {
return NextChunk(out_chunk);
}
/*! \brief destructor*/
virtual ~InputSplit(void) {}
virtual ~InputSplit(void) DMLC_THROW_EXCEPTION {}
/*!
* \brief reset the Input split to a certain part id,
* The InputSplit will be pointed to the head of the new specified segment.
Expand Down
2 changes: 2 additions & 0 deletions include/dmlc/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#define DMLC_MEMORY_H_

#include <vector>
#include <memory>
#include <utility>
#include "./base.h"
#include "./logging.h"
#include "./thread_local.h"
Expand Down
2 changes: 1 addition & 1 deletion include/dmlc/optional.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ struct nullopt_t {
explicit nullopt_t(int a) {}
#else
/*! \brief dummy constructor */
constexpr nullopt_t(int a) {}
explicit constexpr nullopt_t(int a) {}
#endif
};

Expand Down
2 changes: 2 additions & 0 deletions include/dmlc/thread_group.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
#include <mutex>
#include <set>
#include <thread>
#include <memory>
#include <utility>
#include <unordered_set>
#include <unordered_map>
#if defined(DMLC_USE_CXX14) || __cplusplus > 201103L /* C++14 */
Expand Down

0 comments on commit 55f3c7b

Please sign in to comment.