Skip to main content

All Questions

Tagged with or
Filter by
Sorted by
Tagged with
0 votes
1 answer
23 views

I'm trying to make a C++ backend class with QML_ELEMENT macro visible to App.qml, but it doesn't work. I've added qt_add_qml_module to CMakeLists.txt, but it doesn't seem to create the module. Here ...
ASz's user avatar
  • 1
1 vote
1 answer
58 views

In the following code, two completely different implementations of  std::find are used depending on whether the comparison can be performed at compile time. If the compiler can compare the const char* ...
sat0sh1c's user avatar
-3 votes
0 answers
43 views

On https://regex101.com, when I do this: Put primary key\(* as a regular expression. Put CREATE TABLE "leagues"(id integer primary key, name varchar(100), drafttype integer(1), scoringtype ...
Igor's user avatar
  • 6,490
-2 votes
0 answers
45 views

I wanted to make it specific to some language like java, python, c++, etc. But later I decided to keep it generic. Actually, I am working on a task to create a UI that properly displays the data as a ...
Piyush Pandey psquare's user avatar
-4 votes
0 answers
44 views

I am wanting to make a custom title bar for my application. I am using c++ and WebView2. since I have some experience in making a website I thought this would be the best way to go, but I just can not ...
Blur's user avatar
  • 1
0 votes
2 answers
101 views

Having a Java and C background, I am currently learning C++ with an old but good book which explains that all members of a class including variables have to be declared but not initialized in its ...
Torsten Römer's user avatar
1 vote
1 answer
66 views

I was going through the learn OpenGL book's ch. 10 on cameras, and got to the following line of code: glm::vec3 cameraPos = glm::vec3(0.0f, 0.0f, 3.0f); glm::vec3 cameraFront = glm::vec3(0.0f, 0.0f, -...
Kelvin Ohaya's user avatar
0 votes
0 answers
54 views

I'm trying to build mingw 13.0.0 with gcc 15.0.2 toolchain on Windows using another mingw 13.0.0 with gcc 15.0.2 build under busybox shell. As described in this tutorial, I first configured, built and ...
DLWHI's user avatar
  • 153
4 votes
1 answer
166 views

We can use iota as a random_access_range: static_assert(random_access_range<decltype(iota(0))>); // ok cout << (iota(0))[1]; // 1 However, if we pass it via the range adapter common to ...
Amir Kirsh's user avatar
  • 14.5k
0 votes
1 answer
84 views

1. Issue After update cmake to use c++20 with set(CMAKE_CXX_STANDARD 20), the following errors appears when compiling the dependency leveldb [ 11%] Built target glfw [ 15%] Built target raylib [ 16%] ...
Natan Camargos's user avatar
0 votes
1 answer
85 views

I'm trying to compile one Intel Pin function in Visual Studio 2022 in clang-cl compiler. I compile it with clang-cl because the new Pin 4 has only clang compiled version. VOID Image(IMG img, VOID *v){...
pulpf's user avatar
  • 64
4 votes
1 answer
151 views

I'm trying to replicate the "divide by multiply" optimization done in clang (and probably other compilers) when performing the following operation (for use in my own compiler): bool modulo(...
Juliean's user avatar
  • 1,471
0 votes
0 answers
59 views

I have a matrix and I can extract color regions as std::vector<std::pair<int, int> > and I want to convert them into Polygon Boost objects. I have yet no idea how to proceed. Here is a ...
P'tit Ju's user avatar
  • 143
3 votes
1 answer
71 views

Specifically, I am trying to constrain a label to have a width no greater than a (class derived of a) scale. Both are placed within a (class derived of a) grid. TLDR: How do I pass the widgets as ...
user1771942's user avatar
-4 votes
2 answers
109 views

This is my current code. Is there a way to check the user_db map to see if the username a new user adds is already there, and if they are then add them to the database with their own password? #...
Chetan Poudel's user avatar

15 30 50 per page
1
2 3 4 5
54330