開發平台(Platform): (Ex: Win10, Linux, ...)
http://rextester.com/l/cpp_online_compiler_gcc
在這地方測試的
編譯器(Ex: GCC, clang, VC++...)+目標環境(跟開發平台不同的話需列出)
gcc
問題(Question):
http://codepad.org/3WjlxLGF
f((string)FOO<int,int>());
上面這行編譯不過
但只用隱式轉型時沒問題
強制轉基本型別也可以(但要稍微改一下code)
如果casting operator不以template方式使用,例如指定string型別
則允許強制轉型成string
想請教有人知道原因嗎