rudimentary appendShift convenience method, which allows the user to append an arbitrary shift in one line

This commit is contained in:
david clarke committed 2023-06-26 23:59:28 -06:00
1 parent eeb4703b84
commit a7eabaad56
2 files changed
+56 -24

No files matched your search

+2 -2
View File
@@ -15,13 +15,13 @@ using namespace Grid;
// Make the logger work like Python print()
template<typename ... Args>
template<typename... Args>
inline std::string sjoin(Args&&... args) noexcept {
std::ostringstream msg;
(msg << ... << args);
return msg.str();
}
template <typename ... Args>
template <typename... Args>
inline void Grid_log(Args&&... args) {
std::string msg = sjoin(std::forward<Args>(args)...);
std::cout << GridLogMessage << msg << std::endl;