Category "c++"

error: type ‘class’ is not a direct base of ‘class’

I haven't been able to find an answer that relates specifically to my question. It's a bit of a "strange" case in terms of what I've seen. So I have a class C

Show compiler command line of CMake with Visual Studio 2019

I am using open folder functionality of VS2019, and I would like to see flags being used to compile my code. Compilation database does not seem to be generated

How to add layer on top of file system? Like cache in OneDrive or Google Drive

I'm looking for a way (using C# .Net or C++ and WinApi or anything) to add a layer between filesystem and client application to add custom behaviour. Like OneD

In depth understanding of Monad

At one time, I thought I understood Monad. However, when I try to connect my understanding of code to the piece of theory, I found myself still not clear. So he

Finding number of inversions in given array

I have written the following code to find the inversions in array {1,4,2,5,3} by using merge sort technique. I have been debugging it to the best of my knoledge

How do I get c++ inheritance working in actors when I can only inherit from non-UObjects?

I am currently trying to implement inheritance like I would in any other project but I keep getting an error telling me that I can only inherit from non-UObject

SDL2 Draw scene to texture. SDL2 RenderTexture like SFML

I've been developing a 2D Engine using SFML + ImGui. The editor is rendered using ImGui and the scene window is a sf::RenderTexture where I draw the GameObject

how do i call a function in my program from a shared library [closed]

i would like to call a function inside my main program from a shared library at runtime without dropping performance main program: using names

Problems when installing cppflow

I am trying to use the c++ wrapper for tensorflow api from https://github.com/serizba/cppflow. I have copied the git repository. Downloaded the tensorflow api

Mozilla Synstorage-rs installation / make fails under RHEL8

I'm currently trying to install mozilla synstorage-RS on a RockyLinux machine, and step by step I could reduce the amount of errors, but now I got stuck. I foun

Cannot link library for macOS-arm64 with executable for macOS-arm64

I have some trouble with creating a build system on a **Monterey M1 MacBook**: So far I have a working Makefile to build and link a library. (simplified: g++ -

Fast floating-point power of 2 on x86_64

Is there a fast way to take 2.0 to some floating-point degree x? I mean something faster than pow(2.0, x) and preferrably what vectorizes well with AVX2. The c

Is synchronization required when passing a cancel flag with P/Invoke?

I am passing a cancel flag by reference (or by pointer) to a C++ DLL by P/Invoke. The flag will be set at some time in C# code, and the C++ code checks for the

Control Relay by MQTT Publish Subcribe

sorry for my bad english, but i'll try my best i have a code like this void mqttCallback(char *topic, byte *payload, unsigned int length) { Serial.print("Mess

How to connect in Qt signal and slot in dynamically added buttons to get in slot index of added button?

I have list with pointers QPushButton: QList<QPushButton*> listButtons; In this code I am adding dynamically buttons listButtons.push_back(new QPushBu

I started learning DSA ,while writing code for stack DS in c++ , I came across this error

I started learning DSA ,while writing code for stack DS in c++ , I came across this error. So, while I was trying fixing it , I get to know that when I am using

How to handle macOS dock Quit action in QML app?

I have a simple ApplicationWindow that should prevent quitting by overriding onClosing signal. However, when the app is closed from macOS dock, the onClosing is

Does GCC support C++20 std::format?

If it doesn't, do you know what compiler or version will? See cppreference/format.

C2039 and C2873 when including `<cctype>` from the STL

I'm trying to compile a project with msvc 2019 compilers that I know has been compiled before. In fact, I'm actually updating the build system for it. I've come

Is it legal to define an anonymous struct?

Is the following code legal?: struct { int x; }; This code simply defines an unnamed structure. I do not intend to create objects of this type, nor do I