prog.cpp: In function ‘T StringCast(std::string) [with T = Fail]’:
prog.cpp:34: instantiated from here
prog.cpp:10: error: conversion from ‘bool’ to non-scalar type ‘Fail’ requested
prog.cpp:12: error: conversion from ‘bool’ to non-scalar type ‘Fail’ requested
prog.cpp:14: error: conversion from ‘bool’ to non-scalar type ‘Fail’ requested
prog.cpp:16: error: conversion from ‘bool’ to non-scalar type ‘Fail’ requested
prog.cpp:17: error: conversion from ‘bool’ to non-scalar type ‘Fail’ requested
prog.cpp:20: error: ‘stream’ has incomplete type