Blob Blame History Raw
Fixes this error while testing:

 [ /topaz/functions/Producing a new simplicial complex from others/bistellar_simplification ] 1/usr/include/c++/13/bits/basic_string.h:1341: std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_reference std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::back() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; const_reference = const char&]: Assertion '!empty()' failed.
make: *** [Makefile:38: test] Aborted (core dumped)

--- apps/topaz/src/barycentric_subdivision.cc.orig	2023-11-06 04:02:24.000000000 -0700
+++ apps/topaz/src/barycentric_subdivision.cc	2023-11-06 14:05:38.999205777 -0700
@@ -139,7 +139,7 @@ bs_data2Object(const bool realize,
    else
       desc << k << "th ";
    desc << "barycentric subdivision of " << description;
-   if (description.back() != '\n')
+   if (description.empty() || description.back() != '\n')
       desc << endl;
    p_out.set_description() << desc.str();
    return p_out;