Skip to content

Commit f161ed7

Browse files
ElektrikAkarclaude
andcommitted
Fix deprecated settings::resultsPath warnings (breaks macOS Clang CI)
Replace deprecated settings::resultsPath with settings::paths::resultsPath in Problem.hpp. Also simplify path_t typedef from decay_t<decltype(...)> to std::filesystem::path. The deprecation warnings caused ninja to report build failure on macOS CI even without -Werror, possibly due to Clang's stricter default warnings in newer Xcode versions. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 7cdfc90 commit f161ed7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dtwc/Problem.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class Problem
4747
{
4848
public:
4949
using distMat_t = core::DenseDistanceMatrix;
50-
using path_t = std::decay_t<decltype(settings::resultsPath)>;
50+
using path_t = std::filesystem::path;
5151

5252
/// DTW distance function type: computes distance between two series.
5353
using dtw_fn_t = std::function<data_t(const std::vector<data_t> &, const std::vector<data_t> &)>;
@@ -78,7 +78,7 @@ class Problem
7878

7979
std::function<void(Problem &)> init_fun{ init::random }; /*!< Initialisation function. */
8080

81-
path_t output_folder{ settings::resultsPath }; /*!< Output folder for results. */
81+
path_t output_folder{ settings::paths::resultsPath }; /*!< Output folder for results. */
8282
std::string name{}; /*!< Problem name. */
8383
Data data; /*!< Data associated with the problem. */
8484

0 commit comments

Comments
 (0)