The answer to my question in another thread lead to the answer to this one.
Replace the "compile error" line with:
static:
doAssert(false, "T is not a string")
RunThe the doAssert will run at compile time.
The answer to my question in another thread lead to the answer to this one.
Replace the "compile error" line with:
static:
doAssert(false, "T is not a string")
RunThe the doAssert will run at compile time.