FLTK logo

Re: [fltk.coredev] How to test C++98 compatibility?

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.coredev  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: How to test C++98 compatibility? Albrecht Schlosser 05:26 May 06  
 
On 5/6/23 11:44 'melcher....@googlemail.com' via fltk.coredev wrote:
I think I have a great solution for our limited callback functionality that is compatible with C++98,

What new capabilities would it provide? Can we see code or documentation?

but how can I test that? It uses some extensive and unreadable macros and requires __VA_ARGS__, which was only "standardised" in C++99, but most older compiler "just had it".

I don't like macros and "unreadable macros" even less. If your solution uses non-C++98-standard features we should probably not include it.

Anyway, the solution is a header-only file that generates more complex callbacks on the fly, so simply not including the header would keep full compatibility.

OK, header-only sounds a bit better. Nobody needs to compile it. But then we can't have a test suite and example (demo) programs unless we make sure that they are compiled only optionally or dependent on C++ standard version.

My question is, is there any way to test if my code would compile on old compilers?

Setting the C++ standard to compile wouldn't help if you know already that it's not C++ 98 compliant.

Docker can be helpful to test old system environments w/o installing an entire VM or such. But that wouldn't help with any "exotic" platforms that don't have this feature and that we don't test explicitly...

Or should I just merge it, and we will wait for feedback?

We should at least see the code and vote whether it should be included. IMHO such non-standard features require a vote by devs.

--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/426b8942-3416-4fb6-f196-0c58e983b1f0%40online.de.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.