Last 12 weeks · 0 commits
2 of 6 standards met
Closes #142. Summary raise the minimum CMake version from 3.5 to 3.10 remove the deprecation warning emitted by newer CMake releases when dbg-macro is consumed via FetchContent Testing not run locally ( is unavailable in this environment) relies on the repository CI matrix to validate the build across platforms and toolchains
Motivation Views introduced in cpp20 are convenient! Problems Currently, the dbg-macro would treat views as containers. This can cause following issues. 1. pretty_print for views cannot be compiled using GCC 13 (maybe a bug of gcc) Because makes ambiguous (I don't know why). See https://godbolt.org/z/e9Ea61E8s This is okay using gcc14+ or clang. 2. pretty_print for views that do not model const-range cannot be compiled. Because is has no member . (In order to provide the amortized constant time complexity.) Solution Add a specialization for pretty_print to those model like following:
Repository: sharkdp/dbg-macro. Description: A dbg(…) macro for C++ Stars: 3233, Forks: 273. Primary language: C++. Languages: C++ (95.1%), CMake (4.9%). License: MIT. Topics: cpp, debugging, macro, pretty-printing. Latest release: v0.5.1 (2y ago). Open PRs: 1, open issues: 8. Last activity: 7mo ago. Community health: 42%. Top contributors: sharkdp, winwinashwin, hmenke, DerekCresswell, fuchengjie, Harry-Chen, ShikChen, YarikTH, Baltoli, shilangyu and others.