Before version 3.5, we had tests verifying that all the code would still build with GCC using C++98. Maybe GCC inadvertently enabled a few C++11 features even in C++98 mode, but I think for the most part we avoided any C++11 features until 3.5.
On Mon, Aug 12, 2019 at 6:11 AM Mike Pentney <[email protected]> wrote: > Hi, Simon. > > I am using protobuffers with Visual Studio 2008; I went for version 2.6.1 > which is tagged in the git repository. From what I could gather, any > version above 3.0 requires C++11... > > HTH, > > Mike. > > On Thursday, July 4, 2019 at 3:25:59 PM UTC+1, Simon Elliott wrote: >> >> In https://github.com/protocolbuffers/protobuf/issues/2780 it's >> suggested that "We may create a branch that works for C++98. The branch >> will only accept bug fixes, but not new features, optimization, etc" >> >> https://github.com/protocolbuffers/protobuf/issues/3492 "Code should >> compile with --std=c++03 before we switch to c++11 only" has been closed, >> but I can't find the corresponding commit. >> >> I've tried to build a few versions but always fall foul of "error: use >> of undeclared identifier 'va_copy'" which as c++ developers will be aware >> is specific to c++11 and later. >> >> Can anyone advise which version builds with -std=c++98 or -std=c++03? >> > -- > You received this message because you are subscribed to the Google Groups > "Protocol Buffers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/protobuf/539c87cf-ede7-468b-92e9-c5a101632349%40googlegroups.com > <https://groups.google.com/d/msgid/protobuf/539c87cf-ede7-468b-92e9-c5a101632349%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/protobuf/CADqAXr6OOZPMmgbMtk2CjNCn3d0MCu5UMoSWBuB7VzbFHA9gZQ%40mail.gmail.com.
