Date: Sat, 07 Jan 2023 21:15:16 +0000 From: bugzilla-noreply@freebsd.org To: standards@FreeBSD.org Subject: [Bug 268820] index C++ variable overloading Message-ID: <bug-268820-99@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268820 Bug ID: 268820 Summary: index C++ variable overloading Product: Base System Version: 13.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: standards Assignee: standards@FreeBSD.org Reporter: cppleo@ya.ru The STL <string> header require strings.h header. In this header you can see index variable. Variable can't be named without `_` in STL by C++ Standards= .=20 I can't compile my C++ project, because I use `index` variable too. So, file `1.cpp`: ``` #include <string> std::string index; int main() { } ``` Compile: c++ 1.cpp And I've got an error! --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-268820-99>