diff --git a/src/lib/idi/entry-id.hpp b/src/lib/idi/entry-id.hpp index 8a860a9c5..5da10074f 100644 --- a/src/lib/idi/entry-id.hpp +++ b/src/lib/idi/entry-id.hpp @@ -265,7 +265,7 @@ namespace idi { return static_cast (bID); } - + explicit operator string() const; friend bool operator< (EntryID const& i1, EntryID const& i2) { return i1.getSym() < i2.getSym(); } diff --git a/tests/core/proc/asset/basicpipetest.cpp b/tests/core/proc/asset/basicpipetest.cpp index 0947d2f6e..f0bf2126b 100644 --- a/tests/core/proc/asset/basicpipetest.cpp +++ b/tests/core/proc/asset/basicpipetest.cpp @@ -96,7 +96,7 @@ namespace test { Asset::Ident idi = thePipe->ident; CHECK (idi.org == "lumi"); CHECK (contains (idi.name, thePipe->getPipeID())); - CHECK (contains (idi.name, thePipe->getStreamID())); + CHECK (contains (idi.name, string{thePipe->getStreamID()})); Category cat{idi.category}; Category refcat{STRUCT,"pipes"}; @@ -146,7 +146,7 @@ namespace test { pipe2 = asset::Struct::retrieve (Query{"pipe(default)"}); CHECK (pipe2 == pipe1); - string sID = pipe1->getStreamID(); // sort of a "default stream type" + auto sID = string{pipe1->getStreamID()}; // sort of a "default stream type" PPipe pipe3 = Pipe::query ("stream("+sID+")"); CHECK (pipe3); CHECK (pipe3->getStreamID() == StreamType::ID{sID});