Project

General

Profile

Actions

Bug #18823

closed

_Bool not defined for C++

Added by michals (Michal Suchánek) over 2 years ago. Updated over 2 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 3.2.0dev (2022-06-12T17:35:26Z master 8158f05e72)
[ruby-core:108863]

Description

When a _Bool argument is added to rb_fd_select ruby cannot be compiled on

VisualStudio 2022
VisualStudio 2019

gcc-5
gcc-4.8

clang-5
clang-4
clang-3.9

c++98 (llvm 14)
c++2a (llvm 14)

which suggests that if defined(HAVE_STDBOOL_H) && (__cplusplus >= 201103L) in include/ruby/internal/stdbool.h may not be a great way to detect that C++ has bool, especially on Visual Studio.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0