Category "c++"

Google breakpad on arm64. Symbols not found in minidump

I'm building my application and source code of breakpad on Ubuntu 20.04 with two architectures (arm64 and x86_64). Both have been built on Mac with M1 inside do

Weight implementation in graph

I am trying to find the path between two vertices and their distance. My implementation is the following: #include <iostream> #include <list> #inclu

errors whan using QTimer in a multithreading application

I am starting a api rest server in a separate Qthread in my application. the server shall use a library which is using Q timer in several places. The compilati

Binding Callback Function to a HeaderTemplate

How do I bind a callback function to a DataTemplate inside a HeaderTemplate in WinUI3? After reading various answers it appears the DataContext inside a HeaderT

Memory leak issue virtual camera macOS, swift SwiftUI zoom caphost

We are developing a application with virtual camera plugin for macOS by using swiftUI & swift. It has also C++ & objective C library. When we use that p

C++ map with constructor and parameter

I want to have an unordered map with a string and a std::function that call a constructor a class to make a shared_ptr. But I'm stuck, I don't know what I shoul

BOOST request sending JSON data

I want to transfer json data into request of json boost in cpp. If i take json in boost int outer=2; value data = { {"dia",outer}, {"sleep_tim

Bug in Microsoft x64 compiler for signed/unsigned mismatch warnings?

Consider this piece of code: #include <iostream> #include <vector> #include <cstdint> int main() { std::vector<int> a{ 10, 11, 12, 13

Accumulating Doubles Into Bins via intrinsics

I have a vector of observations and an equal length vector of offsets assigning observations to a set of bins. The value of each bin should be the sum of all ob

Unresolved External Symbol - FMT

This is a strange error, because it only happens with this function: #define FMT_HEADER_ONLY #include <fmt/os.h> #include <fmt/format.h> #include &l

How would I propose a new, non-library feature for possible standardization in ISO C++? [duplicate]

I have some ideas about features that would be useful to have in C++. I would like to propose these features to the applicable ISO committee(s

C++, initialize a 2d array. error:subscript requires array or pointer

New to C++. Here is my code: #include <string> #include <cstdlib> #include <time.h> using namespace std; const int Gardensize = 20;//Garden

Can lambda be used instead of void operator?

I'm wondering about this c++11 example and using operator for algorithm functions (for_each, remove_if etc.). For example, I have 2 blocks: struct UpdateFunc {

How to pass a DBus variant to Qt's QDBusInterface::call

I am trying to send the following message to Connman over Qt 5.12's DBus API: dbus-send --system --print-reply --dest=net.connman / net.connman.Manager.SetPrope

How to erase line if entry it doesn't match variable

I am trying to make a program where you have to sign in with a password. If the password is incorrect it is supposed to erase the line so you can try again. Ins

Trying to add touch listener to a clipped image

Hi I have tried to cut a square/rectangle image to a circular one using the ClippingNode in cocos2dx but when I try to click on the clipped image and try to get

How to constrain class template by disabling type argument of specialization itself, and why does(n't) it work?

Is it currently possible to constrain a class template that rejects type argument which is the specialization of the class template itself without using static_

Finding the non zero digit after mutiplying each element in array

Input: N = 4 arr = {3, 23, 30, 45} Output: 5 Explanation: Product of these numbers is 93150. Rightmost non-zero digit is 5. can u solve this question in c++ and

OpenMP can't parallelize for loop with map iterator

The code is as follows. int main() { map<int,int> a; for (int i = 0; i < 6; i++) { a.insert(make_pair(i, i+1)); } map&

Visual Studio 2022 C++ standard libraries could not be found

I installed the visual studio 2022 community edition with a C++ Desktop development packageScreenshot of Visual Studio Installer. When a new console application