-
https://zhxilin.github.io/post/tech_stack/1_programming_language/modern_cpp/cpp17/structured_bindings/
C++17提供了结构化绑定机制,可以使用指定名称绑定到初始化的子对象或元素上,与引用绑定别名类似,但结构化绑定的类型不需要是引用类型。得益于自动推导技术越来越成熟,通过`auto`声明的多…
-
I'm using stock Ubuntu 18.04. I creates a simple setup without any of my init, and I cannot get the color of this small c++ program to work correctly.
#include
std::string a = R"raw(Hi th…
-
Below is the makefile that I created by modifying the original one so that it works on Arch Linux and Arch Linux based OSs.
```
examples: minimal basic modern animation nonblock xkcd quiver bar su…
-
### Checklist
- [X] Checked the issue tracker for similar issues to ensure this is not a duplicate
- [X] Read the documentation to confirm the issue is not addressed there and your configuration is s…
-
# C++ Functions Introduction | hacking C++
Learn the basics of what functions look like in (modern) C++. Did you know C++ can deduce the return type of a function for you?
[https://hackingcpp.com/cp…
-
# Random Number Generation in C++ | hacking C++
How to generate random numbers in modern C++: short examples and an overview of distribution types (basic interface & mathematical definition in 'cheat…
-
Greetings.
I've stumbled upon this on a number of times and kept wondering if any activity will be seen at some point, as this can really help reimplementing the Modern Skin engine for other programs…
-
-
Compiling `lua-requests` on any modern distribution will fail with the following error on any modern Linux distribution:
```
$ luarocks install lua-requests
...
gcc -O2 -fPIC -I/usr/include/lua5…
-
Hi!
I believe I'm following exactly the same steps in these two workflows:
https://github.com/rturrado/the_modern_cpp_challenge/tree/unixlike-builds/.github/workflows
- Running on an `ubuntu-22…