Overview
| Artifact ID: | 5384c5997e78dc8e82725e3e7aa4e29ab4220c8c69b3b67682a9697da8eed39a |
|---|---|
| Ticket: | 1e48483c8b3b2702b981ebcc85474512bb3d6e0d
Use of non-standard C code in TCLBOOLWARNING |
| User & Date: | gustafn3 on 2024-04-26 12:00:15 |
Changes
- icomment:
There are various means to address C++ compatibility: one can deactivate the check in c++ (there is anyhow no full coverage), this would address both cases, or ... one can add "-std=c++11" to the compile flags for c++ programs (for the first case) ... one can use the comma operator and a lambda-expression in the CPP case (([]{static_assert(true,"");}, ....)) ... this addresses the second case for c++ Still wondering: wouldn't it be better to reduce casting and all this manual checking, and let the compiler spit out warnings on type mismatches (maybe dependent on the "backward compatibility" flag)? - login: "gustafn3"
- mimetype: "text/plain"