Skip to content

Commit e6b88d5

Browse files
committed
BOOST_NOEXCEPT -> C++11 noexcept
1 parent 0f966ad commit e6b88d5

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/sample.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ namespace lsl {
127127
}
128128

129129
/// Test for equality with another sample.
130-
bool operator==(const sample &rhs) const BOOST_NOEXCEPT ;
130+
bool operator==(const sample &rhs) const noexcept ;
131131

132132
// === type-safe accessors ===
133133

src/stream_inlet_impl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ namespace lsl {
9393

9494
template <typename T>
9595
double pull_sample_noexcept(T *buffer, int32_t buffer_elements, double timeout = FOREVER,
96-
lsl_error_code_t *ec = nullptr) BOOST_NOEXCEPT {
96+
lsl_error_code_t *ec = nullptr) noexcept {
9797
lsl_error_code_t dummy;
9898
if (!ec) ec = &dummy;
9999
*ec = lsl_no_error;
@@ -159,7 +159,7 @@ namespace lsl {
159159
template <class T>
160160
std::size_t pull_chunk_multiplexed_noexcept(T *data_buffer, double *timestamp_buffer,
161161
std::size_t data_buffer_elements, std::size_t timestamp_buffer_elements,
162-
double timeout = 0.0, lsl_error_code_t *ec = nullptr) BOOST_NOEXCEPT {
162+
double timeout = 0.0, lsl_error_code_t *ec = nullptr) noexcept {
163163
lsl_error_code_t dummy;
164164
if(!ec) ec = &dummy;
165165
*ec = lsl_no_error;

src/stream_outlet_impl.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ using thread_p = std::shared_ptr<lslboost::thread>;
7979

8080
template <typename T>
8181
inline lsl_error_code_t push_sample_noexcept(const T* data, double timestamp = 0.0,
82-
bool pushthrough = true) BOOST_NOEXCEPT {
82+
bool pushthrough = true) noexcept {
8383
try {
8484
enqueue(data, timestamp, pushthrough);
8585
return lsl_no_error;
@@ -135,7 +135,7 @@ using thread_p = std::shared_ptr<lslboost::thread>;
135135
enqueue(&data_buffer[k*num_chans],timestamp_buffer[k],pushthrough && k==num_samples-1);
136136
}
137137

138-
template<class T> int32_t push_chunk_multiplexed_noexcept(const T *data_buffer, const double *timestamp_buffer, std::size_t data_buffer_elements, bool pushthrough=true) BOOST_NOEXCEPT {
138+
template<class T> int32_t push_chunk_multiplexed_noexcept(const T *data_buffer, const double *timestamp_buffer, std::size_t data_buffer_elements, bool pushthrough=true) noexcept {
139139
try {
140140
push_chunk_multiplexed(data_buffer, timestamp_buffer, data_buffer_elements, pushthrough);
141141
return lsl_no_error;
@@ -181,7 +181,7 @@ using thread_p = std::shared_ptr<lslboost::thread>;
181181
}
182182
}
183183

184-
template<class T> int32_t push_chunk_multiplexed_noexcept(const T *data, std::size_t data_elements, double timestamp=0.0, bool pushthrough=true) BOOST_NOEXCEPT {
184+
template<class T> int32_t push_chunk_multiplexed_noexcept(const T *data, std::size_t data_elements, double timestamp=0.0, bool pushthrough=true) noexcept {
185185
try {
186186
push_chunk_multiplexed(data, data_elements, timestamp, pushthrough);
187187
return lsl_no_error;

0 commit comments

Comments
 (0)