Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #91161
| From | Ralf Fassel <ralfixx@gmx.de> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: Visual C++ 2019 is having a hissy fit over these two lines of code |
| Date | 2023-07-20 15:19 +0200 |
| Message-ID | <ygabkg6hg8w.fsf@akutech.de> (permalink) |
| References | <u9a76v$2hd12$1@dont-email.me> <u9a7al$2hd12$2@dont-email.me> |
* Lynn McGuire <lynnmcguire5@gmail.com>
| Severity Code Description Project File Line Suppression State
| Error C2440 'initializing': cannot convert from 'unsigned int (__cdecl
| *)(void) noexcept' to 'fem::size_t' dii_c_library
| C:\dii\inc\fem\size_t.hpp 12
>
| And here is the file:
>
| #ifndef FEM_SIZE_T_HPP
| #define FEM_SIZE_T_HPP
>
| #include <limits>
| #include <cstddef>
>
| namespace fem {
>
| typedef std::size_t size_t;
| typedef std::ptrdiff_t ssize_t;
>
| static const size_t size_t_max = std::numeric_limits<size_t>::max();
| static const ssize_t ssize_t_max = std::numeric_limits<ssize_t>::max();
Check whether
#undef max
static const size_t size_t_max = std::numeric_limits<size_t>::max();
makes a difference at that position. If so, it *is* the 'max' macro,
and it very much depends on other include files before the current one
whether this triggers or not.
HTH
R'
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Visual C++ 2019 is having a hissy fit over these two lines of code Lynn McGuire <lynnmcguire5@gmail.com> - 2023-07-19 21:46 -0500
Re: Visual C++ 2019 is having a hissy fit over these two lines of code Lynn McGuire <lynnmcguire5@gmail.com> - 2023-07-19 21:48 -0500
Re: Visual C++ 2019 is having a hissy fit over these two lines of code Andrey Tarasevich <andreytarasevich@hotmail.com> - 2023-07-19 21:46 -0700
Re: Visual C++ 2019 is having a hissy fit over these two lines of code Lynn McGuire <lynnmcguire5@gmail.com> - 2023-07-20 00:31 -0500
Re: Visual C++ 2019 is having a hissy fit over these two lines of code Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2023-07-19 22:51 -0700
Re: Visual C++ 2019 is having a hissy fit over these two lines of code Bonita Montero <Bonita.Montero@gmail.com> - 2023-07-20 16:11 +0200
Re: Visual C++ 2019 is having a hissy fit over these two lines of code "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-07-20 12:57 -0700
Re: Visual C++ 2019 is having a hissy fit over these two lines of code Bonita Montero <Bonita.Montero@gmail.com> - 2023-07-21 04:51 +0200
Re: Visual C++ 2019 is having a hissy fit over these two lines of code "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-07-21 12:59 -0700
Re: Visual C++ 2019 is having a hissy fit over these two lines of code "Alf P. Steinbach" <alf.p.steinbach@gmail.com> - 2023-07-20 09:04 +0200
Re: Visual C++ 2019 is having a hissy fit over these two lines of code Pavel <pauldontspamtolk@removeyourself.dontspam.yahoo> - 2023-07-20 23:20 -0400
Re: Visual C++ 2019 is having a hissy fit over these two lines of code Paavo Helde <eesnimi@osa.pri.ee> - 2023-07-20 11:22 +0300
Re: Visual C++ 2019 is having a hissy fit over these two lines of code Lynn McGuire <lynnmcguire5@gmail.com> - 2023-07-20 14:05 -0500
Re: Visual C++ 2019 is having a hissy fit over these two lines of code Paavo Helde <eesnimi@osa.pri.ee> - 2023-07-20 23:32 +0300
Re: Visual C++ 2019 is having a hissy fit over these two lines of code Ralf Fassel <ralfixx@gmx.de> - 2023-07-20 15:19 +0200
Re: Visual C++ 2019 is having a hissy fit over these two lines of code Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2023-07-20 01:53 -0700
Re: Visual C++ 2019 is having a hissy fit over these two lines of code Lynn McGuire <lynnmcguire5@gmail.com> - 2023-07-20 14:19 -0500
Re: Visual C++ 2019 is having a hissy fit over these two lines of code Paavo Helde <eesnimi@osa.pri.ee> - 2023-07-20 23:27 +0300
csiph-web