c++11
lundi 22 janvier 2024
How to simplify these function template specializations?
›
I am working on some legacy code that has the following template defined in a header file: template<typename T> std::string convertTo...
samedi 13 janvier 2024
C++: how to locate the exception?
›
I have the following test code. #include <exception> #include <iostream> void terminate_handler() { auto const ep = std::c...
Segmentation fault on nullptr check when incrementing the ptr to iterate over an array
›
The following code, when compiled and run gives a segmentation fault. I was trying out the sample on page 12 of a Tour of C++ on a MacBook. ...
dimanche 31 décembre 2023
How to compile an OpenGL project in CMake in Wayland desktop environment?
›
I'm trying to setup a project that uses OpenGL as library for graphic development; in particular, I want to use CMake for compiling the ...
mercredi 27 décembre 2023
Replace boost::timed_wait() with std in c++17
›
I have a condition variable std::condition_variable my_cond; I want to be able to replace boost::timed_wait() with an std equivalent one. ...
mardi 19 décembre 2023
Overloaded Templates and non-template functions
›
I encountered a problem about "Overloaded Templates and non-template functions". #include <string> #include <sstream>...
samedi 16 décembre 2023
How virtual keyword in virtual inheritance causing a error [duplicate]
›
I have two set of code : First case : #include<iostream> using namespace std; class A { public: virtual void display() { cout ...
›
Accueil
Afficher la version Web