From 2ee485297f3863d24c814f9ae3b5c6ee5c9dfdc3 Mon Sep 17 00:00:00 2001 From: Orange Date: Mon, 22 Jun 2026 03:48:44 +0300 Subject: [PATCH] added more nodiscard messages --- include/omath/pathfinding/a_star.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/omath/pathfinding/a_star.hpp b/include/omath/pathfinding/a_star.hpp index c785afd..06cfb6f 100644 --- a/include/omath/pathfinding/a_star.hpp +++ b/include/omath/pathfinding/a_star.hpp @@ -13,12 +13,12 @@ namespace omath::pathfinding class Astar final { public: - [[nodiscard]] + [[nodiscard("You forgot to use returned path")]] static std::vector> find_path(const Vector3& start, const Vector3& end, const NavigationMesh& nav_mesh) noexcept; private: - [[nodiscard]] + [[nodiscard("You forgot to use reconstructed path")]] static std::vector> reconstruct_final_path(const std::unordered_map, PathNode>& closed_list, const Vector3& current) noexcept;