Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use consistent type size_t for node_count() in C++ bindings #9

Merged
merged 1 commit into from
Apr 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bindings/cpp/include/oxidd/bcdd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ class bcdd_function {
/// Locking behavior: acquires a shared manager lock.
///
/// @returns Node count including the terminal node
[[nodiscard]] size_t node_count() const noexcept {
[[nodiscard]] std::size_t node_count() const noexcept {
assert(_func._p);
return capi::oxidd_bcdd_node_count(_func);
}
Expand Down
2 changes: 1 addition & 1 deletion bindings/cpp/include/oxidd/bdd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ class bdd_function {
/// Locking behavior: acquires a shared manager lock.
///
/// @returns Node count including the two terminal nodes
[[nodiscard]] uint64_t node_count() const noexcept {
[[nodiscard]] std::size_t node_count() const noexcept {
assert(_func._p);
return capi::oxidd_bdd_node_count(_func);
}
Expand Down
1 change: 1 addition & 0 deletions bindings/cpp/include/oxidd/concepts.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#if __cplusplus >= 202002L

#include <concepts>
#include <cstddef>
#include <cstdlib>
#include <functional>
#include <utility>
Expand Down
2 changes: 1 addition & 1 deletion bindings/cpp/include/oxidd/zbdd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ class zbdd_function {
/// Locking behavior: acquires a shared manager lock.
///
/// @returns Node count including the two terminal nodes
[[nodiscard]] uint64_t node_count() const noexcept {
[[nodiscard]] std::size_t node_count() const noexcept {
assert(_func._p);
return capi::oxidd_zbdd_node_count(_func);
}
Expand Down