aboutsummaryrefslogtreecommitdiff
path: root/cpp/nissy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/nissy.cpp')
-rw-r--r--cpp/nissy.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/cpp/nissy.cpp b/cpp/nissy.cpp
index 6e1b700..b3bf6c4 100644
--- a/cpp/nissy.cpp
+++ b/cpp/nissy.cpp
@@ -221,13 +221,10 @@ namespace nissy {
221 221
222 solver::solver(const std::string& str) : name{str} {} 222 solver::solver(const std::string& str) : name{str} {}
223 223
224 std::variant<unsigned, error> 224 error count_moves(const std::string& moves)
225 count_moves(const std::string& moves)
226 { 225 {
227 auto err = nissy_countmoves(moves.c_str()); 226 auto err = nissy_countmoves(moves.c_str());
228 if (err < 0) 227 return error{err};
229 return error{err};
230 return (unsigned)err;
231 } 228 }
232 229
233 void set_logger(const std::function<void(const char *)>& log) 230 void set_logger(const std::function<void(const char *)>& log)

Generated with cgit - Back to sebastiano.tronto.net