Skip to content

Commit

Permalink
Update binding.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
gandalfr-KY authored Dec 24, 2024
1 parent de837ed commit 99be052
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/binding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ void cleanup() {

template <std::floating_point Fp>
void bind_on_precision(nb::module_& m, const char* submodule_name) {
auto mp = m.def_submodule(
submodule_name,
(std::ostringstream("module for ") << submodule_name << "precision").str().c_str());
std::ostringstream oss;
oss << "module for " << submodule_name << "precision";
auto mp = m.def_submodule(submodule_name, oss.str().c_str());

internal::bind_state_state_vector_hpp<Fp>(mp);
internal::bind_state_state_vector_batched_hpp<Fp>(mp);
Expand Down

0 comments on commit 99be052

Please sign in to comment.