Когда надо что-то сделать, но лень... Ленивое вычисление аргументов функции в C++.
https://foonathan.net/blog/2017/06/27/lazy-evaluation.html
#cpp #lazyevaluation
https://foonathan.net/blog/2017/06/27/lazy-evaluation.html
#cpp #lazyevaluation
www.foonathan.net
Lazy evaluation of function arguments in C++
Sometimes you calculate an expensive parameter and then the function don't need it at all! Examples would be the creation of a log message but the logger is disabled. With lazy evaluation of function arguments the parameter will only be evaluated when it…
Конкатенация строк на этапе компиляции. И это статья не про "конкатенацию " "строковых " "литералов".
https://akrzemi1.wordpress.com/2017/06/28/compile-time-string-concatenation/
#cpp #string
https://akrzemi1.wordpress.com/2017/06/28/compile-time-string-concatenation/
#cpp #string
Andrzej's C++ blog
Compile-time string concatenation
We will start with a bug, taken from real life. It spans across three files: Question: what happens when this program is executed?
Немножечко позитива: какую роль играет
https://stackoverflow.com/questions/18889028/a-positive-lambda-what-sorcery-is-this/18889029#18889029
#sa #cpp #lambda #functions
operator + у C++-лямбд?https://stackoverflow.com/questions/18889028/a-positive-lambda-what-sorcery-is-this/18889029#18889029
#sa #cpp #lambda #functions
Stack Overflow
A positive lambda: '+[]{}' - What sorcery is this?
In Stack Overflow question Redefining lambdas not allowed in C++11, why?, a small program was given that does not compile:
int main() {
auto test = []{};
test = []{};
}
The question was
int main() {
auto test = []{};
test = []{};
}
The question was
Вышла новая версия тестового фреймворка Catch.
https://github.com/philsquared/Catch/releases/tag/v1.9.6
#cpp #test
https://github.com/philsquared/Catch/releases/tag/v1.9.6
#cpp #test
GitHub
Release v1.9.6 · catchorg/Catch2
1.9.6
Improvements
Catch's runtime overhead has been significantly decreased (#937, #939)
Added --list-extra-info cli option (#934).
It lists all tests together with extra information, ie fil...
Improvements
Catch's runtime overhead has been significantly decreased (#937, #939)
Added --list-extra-info cli option (#934).
It lists all tests together with extra information, ie fil...
ФП в плюсцах.
https://www.youtube.com/watch?v=jD8Tu1tqvZo
Ссылка предложена @winged_pegasus.
#cpp #functional #video #tutorial
https://www.youtube.com/watch?v=jD8Tu1tqvZo
Ссылка предложена @winged_pegasus.
#cpp #functional #video #tutorial
YouTube
Functional Programming using C++ (1/27) - Introducing functional programming
take the full video course at: https://www.udemy.com/functional-programming-using-cpp
Installation_Windows.md: https://gist.github.com/Dobiasd/96393783cfff02d70c3a6669fd945235
Installation_Linux.md: https://gist.github.com/Dobiasd/c2e7e021f87d3e8a91b92b0ec48da303
Installation_Windows.md: https://gist.github.com/Dobiasd/96393783cfff02d70c3a6669fd945235
Installation_Linux.md: https://gist.github.com/Dobiasd/c2e7e021f87d3e8a91b92b0ec48da303
В StackOverflow завезли группирование вопросов по темам. Для C++ ссылка ниже:
https://stackoverflow.com/documentation/c%2b%2b/topics
#cpp #manual #so #rtfm
https://stackoverflow.com/documentation/c%2b%2b/topics
#cpp #manual #so #rtfm
Stack Overflow
Documentation
Stack Overflow | The World’s Largest Online Community for Developers
Небольшая экспериментальная библиотека конечных автоматов от Boost.
https://github.com/boost-experimental/sml
#repo #boost #cpp #state #github
https://github.com/boost-experimental/sml
#repo #boost #cpp #state #github
GitHub
GitHub - boost-ext/sml: SML: C++14 State Machine Library
SML: C++14 State Machine Library. Contribute to boost-ext/sml development by creating an account on GitHub.
Реализация std::error_category для NTSTATUS-кодов (к примеру, 0xc0000005).
https://github.com/ned14/ntkernel-error-category
#repo #cpp #ntstatus #github
https://github.com/ned14/ntkernel-error-category
#repo #cpp #ntstatus #github
GitHub
GitHub - ned14/ntkernel-error-category: A C++ 11 std::error_category for the NT kernel's NTSTATUS error codes
A C++ 11 std::error_category for the NT kernel's NTSTATUS error codes - ned14/ntkernel-error-category
Если вы также не осилили
https://github.com/jakubbielawa/LineEndingsUnifier
#vs #extension #newline #кривыеручки
core.autocrlf в вашем Git-репозитории или просто хотите унифицировать все newlines в ваших проектах Visual Studio, то это расширение для вас:https://github.com/jakubbielawa/LineEndingsUnifier
#vs #extension #newline #кривыеручки
GitHub
GitHub - jakubbielawa/LineEndingsUnifier: A Visual Studio extension which allows developers to have line endings in source files…
A Visual Studio extension which allows developers to have line endings in source files unified easily - GitHub - jakubbielawa/LineEndingsUnifier: A Visual Studio extension which allows developers t...
Небольшая header-only-библиотечка с высокоуровневыми функциями для строк, вида replace, split и тех, которые обычно пишутся в C++ руками.
https://github.com/George3d6/striga
#repo #string #headeronly #github
https://github.com/George3d6/striga
#repo #string #headeronly #github
GitHub
GitHub - George3d6/striga: A simple and generic string manipulation library for C++
A simple and generic string manipulation library for C++ - GitHub - George3d6/striga: A simple and generic string manipulation library for C++
Небольшая либа со строковыми алгоритмами для повседневной разработки: Boost.Algorithm
Списочек интересненьких open-source-проектов, в которые можно поконтрибутить.
https://github.com/lk-geimfari/awesomo
#repo #awesomelist #github
https://github.com/lk-geimfari/awesomo
#repo #awesomelist #github
GitHub
GitHub - lk-geimfari/awesomo: Cool open source projects. Choose your project and get involved in Open Source development now.
Cool open source projects. Choose your project and get involved in Open Source development now. - lk-geimfari/awesomo
Немного юриспруденции, связанной с программированием.
https://geektimes.ru/post/173265/
#coding #justice #habr
https://geektimes.ru/post/173265/
#coding #justice #habr
Habr
Разоблачение 12 юридических заблуждений о программах для ЭВМ
Заблуждение / опасная привычка На самом деле … Наш совет прост: 1. Мы создали программу и автоматически стали ее авторами и правообладателями. Для охраны и продажи программы никаких...
Forwarded from Anatoly Shirokov
Не прошло и 35 лет, а MSVC наконец поддержал two-phase name lookup: https://blogs.msdn.microsoft.com/vcblog/2017/09/11/two-phase-name-lookup-support-comes-to-msvc/
Microsoft
Two-phase name lookup support comes to MSVC
C++ tutorials, C and C++ news, and information about the C++ IDE Visual Studio from the Microsoft C++ team.