Skip to content

Commit

Permalink
Comment out destructor for cygwin
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph-Edwards committed Nov 20, 2024
1 parent 1eb8b88 commit f8c997a
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions include/libsemigroups/schreier-sims.tpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,17 @@ namespace libsemigroups {

template <size_t N, typename Point, typename Element, typename Traits>
SchreierSims<N, Point, Element, Traits>::~SchreierSims() {
if constexpr (std::is_pointer_v<internal_element_type>) {
if (_one != nullptr) {
// _one not being the nullptr indicates that this owns its data, and
// otherwise that it does not. This is required by the move
// constructors.
free_strong_gens_traversal_inversal();
this->internal_free(_tmp_element1);
this->internal_free(_tmp_element2);
this->internal_free(_one);
}
}
// if constexpr (std::is_pointer_v<internal_element_type>) {
// if (_one != nullptr) {
// // _one not being the nullptr indicates that this owns its data, and
// // otherwise that it does not. This is required by the move
// // constructors.
// free_strong_gens_traversal_inversal();
// this->internal_free(_tmp_element1);
// this->internal_free(_tmp_element2);
// this->internal_free(_one);
// }
// }
}

template <size_t N, typename Point, typename Element, typename Traits>
Expand Down

0 comments on commit f8c997a

Please sign in to comment.