多谢@SPeak
系统是mac os 14.4,练习的名字是hello-cpp,即 项目使用教程/引导中的例子。
详细输出为:
Progress: [>---------------------------] 0/27
[Target: 00-0-hello-mcpp] - normal
Error: Compilation/Running failed for dslings/hello-mcpp.cpp
The code exist some error!
---------C-Output---------
[ 23%]: cache compiling.release dslings/hello-mcpp.cpp
error: dslings/d2x/common.hpp:36:12: error: 'auto' not allowed in function return type
static auto test(U* f) -> decltype((f)(std::declval<Args>()...), std::true_type());
^~~~
dslings/d2x/common.hpp:36:27: error: expected ';' at end of declaration list
static auto test(U f) -> decltype((*f)(std::declval<Args>()...), std::true_type());
^
;
dslings/d2x/common.hpp:42:12: error: unknown type name 'constexpr'
static constexpr bool value = decltype(test<F>(nullptr))::value;
^
2 warnings and 3 errors generated.
in dslings/hello-mcpp.cpp
AI-Tips-Config: https://d2learn.org/docs/xlings
---------E-Files---------
dslings/hello-mcpp.cpp
Homepage: https://github.com/d2learn/xlings