mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 08:34:37 +08:00
Modernize code using c++17 constructs
Mostly done using
find . \( -name '*.cc' -o -name '*.h' \) -a -type f -exec clang-tidy -p \
cmake-build -checks='-*,google-*,modernize-*,-modernize-use-nodiscard,-modernize-use-trailing-return-type' {} -fix \;
Change-Id: Ifccbcabe7a1d9a32a09d28ac4f3f8466696c1a50
This commit is contained in:
@@ -40,8 +40,7 @@
|
||||
|
||||
#include "ceres/jet_fwd.h"
|
||||
|
||||
namespace ceres {
|
||||
namespace internal {
|
||||
namespace ceres::internal {
|
||||
|
||||
// Implementation of calculating an exclusive scan (exclusive prefix sum) of an
|
||||
// integer sequence. Exclusive means that the i-th input element is not included
|
||||
@@ -195,7 +194,6 @@ template <class Sequence>
|
||||
inline constexpr bool IsEmptyOrAreAllEqual_v =
|
||||
IsEmptyOrAreAllEqual<Sequence>::value;
|
||||
|
||||
} // namespace internal
|
||||
} // namespace ceres
|
||||
} // namespace ceres::internal
|
||||
|
||||
#endif // CERES_PUBLIC_INTERNAL_INTEGER_SEQUENCE_ALGORITHM_H_
|
||||
|
||||
Reference in New Issue
Block a user