/explore
|
You are here |
mklimenko.github.io | ||
| | | | |
mpark.github.io
Can we work around the limitations of non-type template parameters? |
|
| | | | | ||
| | | | |
www.foonathan.net
Just like regular function parameters, template parameters can also have default parameters. For class templates, this behaves mostly just like default function arguments: if you pass fewer template arguments than required, default template arguments are used to fill the remaining places. However, for function templates, it gets more complicated as template parameters for functions can be deduced by the normal function arguments. This leads to some interesting side-effects. In particular, default argumen... |
|
| | | | | ||
| | | | |
nelari.us
A small look at some useful template techniques, in the context of trying to bind functions to a virtual machine. I wrote this post mostly for myself so that these techniques would be listed all in one place. |
|
| | | | | ||
| | | | |
andrewkelley.me
[AI summary] The blog post discusses the evolution of programming languages, focusing on Rust and Zig's approaches to handling formatted output. It highlights the challenges in C's format string system, the use of macros in Rust, and Zig's ability to handle formatted output without special compiler cases, relying on userland code. The post also touches on the trade-offs of macros and the design goals of Zig to provide power without the drawbacks of macro-based systems. |
|
| | | |||