boostorg / lexical_cast

General literal text conversions, such as an int represented as a string, or vice versa
https://boost.org/libs/lexical_cast
34 stars 58 forks source link

BOOST_OVERRIDE missing #55

Closed ElDuderinoBerlin closed 1 year ago

ElDuderinoBerlin commented 1 year ago

Error: d:\boost_1_80_0\msvc-14.3-64\boost\lexical_cast\bad_lexical_cast.hpp(54,60): error C3646: 'BOOST_OVERRIDE': unknown override specifier

My temp fix:

ifndef BOOST_OVERRIDE

define BOOST_OVERRIDE override

endif

mclow commented 1 year ago

I tried this on godbolt with a reasonably new MSVC:

#include <boost/lexical_cast/bad_lexical_cast.hpp>

int main () {}

I don't know what MSVC 14.3 is. Can you give me more information about it? it's not listed on the MSVC Wikipedia page

ElDuderinoBerlin commented 1 year ago

I tried this on godbolt with a reasonably new MSVC:

#include <boost/lexical_cast/bad_lexical_cast.hpp>

int main () {}

Yes this works for a simple console app. Must be includes of mine which in conjunction with boost produces this error. I fixed this by just excluding "lexical_cast.hpp" which wasn't really needed i figured out.

I close this for now.