Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add noexcept in DataIter, InputSplit #506

Merged
merged 2 commits into from
Mar 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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