小编ter*_*000的帖子

我不知道为什么这个 static_assert() 代码不起作用

这是代码:

#pragma once

#include <stdint.h>

namespace Detours
{
    static_assert(sizeof(uintptr_t) == sizeof(void *));
}
Run Code Online (Sandbox Code Playgroud)

我收到此错误消息:

Error (active) E2783 expected a comma (the one-argument version of static_assert is not enabled in this mode)
Run Code Online (Sandbox Code Playgroud)

c++ static-assert

5
推荐指数
2
解决办法
1331
查看次数

标签 统计

c++ ×1

static-assert ×1