Harish Kant Soni·Sep 26Declaring a destructor turns a move into a copyBelow is a code snippet with two classes that do identical work, except one defines a destructor that does nothing and the other doesn’t…
Harish Kant Soni·Sep 24The Move Constructor That Wasn’t ThereFor a long time I carried around a comfortable little belief: if you don’t write a copy or move constructor yourself, the compiler writes…A response icon1A response icon1
Harish Kant Soni·Sep 21My pipeline got a subagent team — and got fasterI’ve got a little repo that turns a quote into a motivational video. Repo’s here: github.com/harishkantsoni/video_generator. I use it to…
Harish Kant Soni·Apr 27, 2025Templates in C++ : part-2A template is instantiated in following 4 cases:
Harish Kant Soni·Apr 26, 2025Templates in C++ : PaA template is a blueprint for a function or a class. It allows a programmer to write code without explicitly specifying the type…
Harish Kant Soni·Jan 3, 2025Make filesA simple makefile consists of “rules” with the following shape:
Harish Kant Soni·Dec 3, 2024Passing overloaded functions in std::threadIn C++, you cannot directly pass the name of an overloaded function to a std::thread constructor because the compiler cannot resolve which…