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

Minor fixes #471

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion moe/optimal_learning/cpp/gpp_optimization.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1307,7 +1307,7 @@ class MultistartOptimizer final {
// allocated objects, bad state, etc).

// Guarantee: only one exception will ever be captured; only one thread will ever execute the lambda function.
std::call_once(exception_capture_flag, [&captured_exception]() {
std::call_once(exception_capture_flag, [&captured_exception]() noexcept {
captured_exception = std::current_exception();
});
}
Expand Down
1 change: 1 addition & 0 deletions moe/optimal_learning/cpp/gpp_optimization_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
#include <cmath>

#include <algorithm>
#include <numeric>
#include <string>
#include <vector>

Expand Down
2 changes: 1 addition & 1 deletion moe/optimal_learning/cpp/gpp_test_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ bool CheckIntEquals(int64_t value, int64_t truth) noexcept {
bool passed = value == truth;

if (passed == false) {
OL_ERROR_PRINTF("value = %lld, truth = %lld, diff = %lld\n", value, truth, truth-value);
OL_ERROR_PRINTF("value = %ld, truth = %ld, diff = %ld\n", value, truth, truth-value);
}
return passed;
}
Expand Down