Re: [boost] [signals2][variant] inline warning with MSVC 2022
Frank Mori Hess via Boost-users <[email protected]>
| Newsgroups | gmane.comp.lib.boost.user,gmane.comp.lib.boost.devel |
|---|---|
| Message-ID | <CAJz5OpcPdLEf6NR4uBvXr_JQyTKSCt2UNKEDpCk0Dnjuj2opLQ@mail.gmail.com> |
On Wed, Sep 21, 2022 at 12:32 PM Peter Dimov <[email protected]> wrote: > > That's not very user friendly; maybe the user _wants_ the warning in his code, > and the above would disable it even if no Boost header that uses > BOOST_FORCEINLINE (and generates a warning) has been included. > Okay, then maybe BOOST_FORCEINLINE shouldn't be defined as __force_inline on compilers where it doesn't actually force inlining. If the compiler is just going to treat it as a suggestion, I don't see the point of boost headers using it and then suppressing the warning. -- Frank