跳转至内容
  • 版块
  • 最新
  • 标签
  • 热门
  • Online Tools
  • 用户
  • 群组
折叠
品牌标识

D2Learn Forums

yiten94Y

yiten94

@yiten94
关于
帖子
2
主题
1
群组
0
粉丝
0
关注
0

帖子

最新 最佳 有争议的

  • hello-mcpp中编译报错'auto' not allowed in function return type
    yiten94Y yiten94

    多谢@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


  • hello-mcpp中编译报错'auto' not allowed in function return type
    yiten94Y yiten94

    hello-mcpp中编译报错 dslings/d2x/common.hpp:36:12: error: 'auto' not allowed in function return type是c++版本不对吗?有地方指定c++版本吗

  • 登录

  • 没有帐号? 注册

  • 登录或注册以进行搜索。
d2learn forums Powered by NodeBB
  • 第一个帖子
    最后一个帖子
0
  • 版块
  • 最新
  • 标签
  • 热门
  • Online Tools
  • 用户
  • 群组