Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
0 votes
0 answers
37 views

Similar to the problem described here I need to create a template class which should provide the conversion constructor from Any type. The conversion constructor should spot the narrowing conversions. ...
-4 votes
0 answers
57 views

### Description I am trying to contribute to the **OpenVINO Test Drive** repository (https://github.com/openvinotoolkit/openvino_testdrive) and set it up locally. I followed the documentation — ...
0 votes
0 answers
85 views

I encountered this error when trying to compile a Gtest application using MinGW on Windows: [build] D:/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/...
0 votes
3 answers
186 views

I'm experimenting with a function template that performs assignment: #include <vector> #include <memory> template<typename T> void foo(T& a, const T& b) { a = b; } int ...
Best practices
0 votes
12 replies
153 views

I have a function I am trying to write in C++ that takes a char and executes a unique code segment based on the character passed. I am scaling this to take around 50 characters, so I'm not sure that a ...
2 votes
1 answer
132 views

Consider the following code where I test whether a type is copy-assignable by using the std::is_copy_assignable_v type-trait: #include <print> #include <type_traits> struct IntProxy { ...
0 votes
1 answer
114 views

Technically its a vector<vector<vector<const char *>>> but I'm using it as a vector<vector<cstrings>> I have been stuck at this issue for weeks and I do not understand it....
-1 votes
0 answers
81 views

Hello Im quite new with directx, I'm mostly using it because its the interface that its being used for an old game, for which im writing a sort of wipe screen function, so it all works fine up until i ...
0 votes
0 answers
56 views

This question relates to a long standing open source application that has an FLTK UI and uses Cairo for custom drawing in various places. With FLTK 1.4, there is now a hybrid Wayland/X11 backend. We ...
0 votes
1 answer
137 views

Given the below code (running at https://godbolt.org/z/rEK1MEMxf): #include "catch2/catch_all.hpp" #include <any> #include <list> #include <algorithm> #include <memory&...
0 votes
1 answer
50 views

I have the following project structure, where libb.so depends on liba.so, libc.so depends on libb.so and libd.so depends on libc.so abcd ├── a │ ├── lib.cpp │ ├── lib.o │ └── liba.so ├── b │ ├─...
8 votes
1 answer
196 views

Clang compiles the following C++20 code snippet, while at the same time it is rejected by both GCC and MSVC. There are at least two options: The code is illegal and Clang fails to report an ...
0 votes
0 answers
81 views

I am working on a machine vision application in C++ and using the DIPlib library for image processing. I have a side-view (profile) grayscale image of a button-like part placed on a flat surface. My ...
3 votes
1 answer
158 views

On cppreference (which I understand is not the c++ standard itself) I have read that the coroutine state contains "local variables and temporaries whose lifetime spans the current suspension ...
3 votes
3 answers
177 views

I want to pass a C-style array to a function taking a std::span, but overload resolution chooses to convert the array to bool instead. Is this behavior required by the standard, or is it a compiler ...
prl's user avatar
  • 12.5k

15 30 50 per page
1
2 3 4 5
...
54334

AltStyle によって変換されたページ (->オリジナル) /