mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Update minimum required C++ version for Ceres to C++14
- Removes all workarounds for pre-C++14 versions - Removes '11' qualifier from C++ threading option and associated defines. - Fix missing inclusion of 'Multithreading' in reported Ceres components when C++ threading model is enabled. - Update Sphinx documentation to specify C++14 as minimum requirement. Change-Id: I706c8b367b3221e3c4d1a0aaf669a8f9c911e438
This commit is contained in:
@@ -36,9 +36,9 @@
|
||||
|
||||
#include "ceres/context.h"
|
||||
|
||||
#ifdef CERES_USE_CXX11_THREADS
|
||||
#ifdef CERES_USE_CXX_THREADS
|
||||
#include "ceres/thread_pool.h"
|
||||
#endif // CERES_USE_CXX11_THREADS
|
||||
#endif // CERES_USE_CXX_THREADS
|
||||
|
||||
namespace ceres {
|
||||
namespace internal {
|
||||
@@ -51,14 +51,14 @@ class ContextImpl : public Context {
|
||||
|
||||
virtual ~ContextImpl() {}
|
||||
|
||||
// When compiled with C++11 threading support, resize the thread pool to have
|
||||
// When compiled with C++ threading support, resize the thread pool to have
|
||||
// at min(num_thread, num_hardware_threads) where num_hardware_threads is
|
||||
// defined by the hardware. Otherwise this call is a no-op.
|
||||
void EnsureMinimumThreads(int num_threads);
|
||||
|
||||
#ifdef CERES_USE_CXX11_THREADS
|
||||
#ifdef CERES_USE_CXX_THREADS
|
||||
ThreadPool thread_pool;
|
||||
#endif // CERES_USE_CXX11_THREADS
|
||||
#endif // CERES_USE_CXX_THREADS
|
||||
};
|
||||
|
||||
} // namespace internal
|
||||
|
||||
Reference in New Issue
Block a user