Closed RalphSteinhagen closed 2 years ago
Am willing to get this working and to provide a PR (with guidance). I thus gave it a quick shot -- ignoring the warnings aside (for which the code works perfectly well -- I replace the offending pointer-casting-magic in the above and other similar locations by
using type = decltype(std::declval<input_type>().in(std::declval<Observable>()));
On that note, I am having two questions:
[..] RxCpp depends on the latest compiler releases [..]
)auto
) or constraint types via concepts work equally?
This would make the code easier to read/reason from a C++20 perspective and provide nicer compiler errors, wouldn't it?Any feedback on this would be appreciated.
@kirkshoop or anybody else: any chance to get feedback on this and the corresponding PR?
We liked to use it in our C++20 project but the compiler warnings turned into errors would be a substantial technical burden.
Thanks in advance and much appreciated! :+1:
@kirkshoop thanks for merging and accepting this! Issue is fixed by PR closing now.
First, thanks for this very interesting and well-thought-through library. :+1:
The shared.cmake prescribes strict type checking via
-Werror
for both gcc and clang. This fails for at least gcc 11.2.1, clang 13.0.0, and possibly earlier versions for adecltype(..)
evaluation relying on annullptr
cast:Maybe this pointer/type magic could be replaced by a safer alternative.
Since this library aims at newer compiler/C++ standards, maybe the various typedefs could possibly be replaced by
using type=...
.