-
fmtlog.h:417:58: required from here
/opt/vcpkg/installed/x64-linux/include/fmt/core.h:1438:72: error: no matching function for call to ‘fmt::v10::detail::arg_mapper::map()’
1438 | FMT_CONSTEXPR…
-
Standard `constexpr` algorithms
---
[P0202](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0202r0.html) proposes to add `constepxr` to many functions from `` and to basically every algor…
-
Since switching to C++, we declare constants using `constexpr`. However, there are plenty of older constants from our C days. These need to be refactored.
Actual macros (which are also declared usi…
-
_Перенос предложения:_ голоса +36, -0
_Aвтор идеи:_ **Сергей Тиунов**
## Мотивация
Бывают ситуации, когда было бы удобно организовать код в виде простого цикла (с известными пределами), но это…
-
_Перенос предложения:_ голоса +6, -3
_Автор идеи:_ **Antervis**
Оператор constexpr( statement ) -> decltype(statement) - попытаться вычислить не объявленное явно как constexpr выражение в compile-…
-
Just FYI, in GCC we've added support for from_chars for the C++23 std::{,b}float16_t support in https://gcc.gnu.org/r13-3592 .
We've done it by using an artificial wrapper class for each of those and…
-
What if we could simply call a templated function without angle brackets. To be clear I'm not talking about implicitly deducing
Note: I'll write in cpp1 syntax simply because I'm not aware of temp…
-
- 文件路径:book/zh-cn/02-usability.md
[web 端](https://changkun.de/modern-cpp/zh-cn/02-usability/#constexpr)
原文:
>```cpp
>#include
>#define LEN 10
>
>int len_foo() {
> int i = 2;
> re…
-
This is very minor issue with the API.
For constants I use `constexpr` over `#define` wherever possible. I want to have the set of keywords used by my grammar defined via `constexpr std::string_vi…
-
`!cons` のふたつのオペランドが両方とも ConstExpr な
```
!cons
1
nil
```
みたいのは ConstExpr のリストにしちゃっていいよね。
こういうの置換する実装したい。