Skip to content
Merged
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
8 changes: 5 additions & 3 deletions include/tensorwrapper/detail_/dsl_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,11 @@ class DSLBase {
const auto rank = other.object().rank();
const auto n = other.labels().size();
if(rank == n) return;
throw std::runtime_error(
std::to_string(n) + " dummy indices is incompatible with an object"
" with rank " = std::to_string(rank));
auto msg = std::to_string(n) +
" dummy indices is incompatible with an object"
" with rank =" +
std::to_string(rank);
throw std::runtime_error(msg);
}

/// Checks that @p output is a subset of @p input
Expand Down