mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-02-08 01:08:41 +01:00
tests for bool in ToString/StringTo (#1230)
- Added tests for ToString/StringTo<bool> - Added overload for ToString of bool (previously went through int)
This commit is contained in:
@@ -5,6 +5,13 @@
|
||||
|
||||
namespace sls {
|
||||
|
||||
|
||||
std::string ToString(bool value) {
|
||||
return value ? "1" : "0";
|
||||
}
|
||||
|
||||
|
||||
|
||||
std::string ToString(const slsDetectorDefs::xy &coord) {
|
||||
std::ostringstream oss;
|
||||
oss << '[' << coord.x << ", " << coord.y << ']';
|
||||
|
||||
Reference in New Issue
Block a user