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:
Alex Stewart
2020-05-30 11:30:01 +01:00
parent 1d75e75681
commit 7ef83e0759
35 changed files with 124 additions and 602 deletions
+5 -5
View File
@@ -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