Anonymous » 02 мар 2024, 18:10
Последнее сообщение Anonymous «
Anonymous »
at the moment I am using a windows machine and wanted to try out windows subsystem for linux(wsl) for c++ development. Visual studio code(vsc) provides a neat extension for working on the subsystem that works quite well. One thing I could not get to...
Anonymous » 02 мар 2024, 17:36
Последнее сообщение Anonymous «
Anonymous »
With the attribute [ ] used for plain old data (POD) arrays like ‘std::size_t[]’ the template specialization for zero structure size could be as small as index member is has, not occupying memory for the data array.
Anonymous » 02 мар 2024, 17:33
Последнее сообщение Anonymous «
Anonymous »
I make an executable file using cmake, and it runs perfectly on my computer, but when I share it to another computer and I open it, it says libcrypto-x64.dll was missing. I tried to find it on web and searched everything but I didn't find anything....
Anonymous » 02 мар 2024, 17:23
Последнее сообщение Anonymous «
Anonymous »
I wrote the following code that has two lambdas. One of them explicitly captures i while the other doesn't. Note i is constexpr so we don't need to capture it explicitly.
My question is why func(lambda2) doesn't compile while func(lambda) does?...
Anonymous » 02 мар 2024, 17:09
Последнее сообщение Anonymous «
Anonymous »
I'm working on a native Windows app to stream part of my desktop to a microcontroller as part of a creative tech project. It's written using C++ and is curently a console app. I have no intention of switching to Javascript, C# or anything else....
Anonymous » 02 мар 2024, 16:45
Последнее сообщение Anonymous «
Anonymous »
Processing large amounts of data (gigabytes) I use indexes to data arrays. Since access to data could lead to cache inefficiency, I want to cache some data from array together with the index which gives dramatic speedup for operations through...
Anonymous » 02 мар 2024, 16:34
Последнее сообщение Anonymous «
Anonymous »
I wrote the following code that has two lambdas. One of them explicitly captures i while the other doesn't. Note i is constexpr so we don't need to capture it explicitly.
My question is why func(lambda2) doesn't compile while func(lambda) does?...
Anonymous » 02 мар 2024, 16:23
Последнее сообщение Anonymous «
Anonymous »
PIMPL stands for P ointer to IMPL ementation. The implementation stands for implementation detail : something that the users of the class need not to be concerned with.
Qt's own class implementations cleanly separate out the interfaces from the...
Anonymous » 02 мар 2024, 16:21
Последнее сообщение Anonymous «
Anonymous »
I have suprising observation that steady_clock gives poor 10ms resolution when measuring durations. I compile for windows under cygwin. Is it sad true or am I doing sth wrong?
auto start = std::chrono::steady_clock::now(); /*...*/ auto end =...
Anonymous » 02 мар 2024, 15:49
Последнее сообщение Anonymous «
Anonymous »
Question:
I've been exploring different types of casting in C++, particularly const_cast, which is used to cast a const T to T, where T represents a data type. However, I encountered a perplexing behavior when experimenting with const_cast....
Anonymous » 02 мар 2024, 14:53
Последнее сообщение Anonymous «
Anonymous »
I am currently working on adding CMake support to a library that currently uses waf as its build system. The code I have for CMake is excruciatingly slow compared to the existing build system with waf, and I believe it is because of the following...
Anonymous » 02 мар 2024, 14:36
Последнее сообщение Anonymous «
Anonymous »
I tried to accept touch events in Qt6 like this, in main.cpp:
QApplication::setAttribute(Qt::ApplicationAttribute::WA_AcceptTouchEvents); error: no member named 'WA_AcceptTouchEvents' in 'Qt::ApplicationAttribute'
Anonymous » 02 мар 2024, 14:24
Последнее сообщение Anonymous «
Anonymous »
I have .sln with two projects: library (.lib) and project (.exe), which use this library.
Library uses external header and has path to it in Additional Include Directories, but I confused that I also should add path to this header to Project's...
Anonymous » 02 мар 2024, 14:19
Последнее сообщение Anonymous «
Anonymous »
I want to display an image within a scroll area. The view port of the scroll area shall have a defined initial size. That means, if the image's size is bigger than the initial size of the view port, scroll bars will be visible, otherwise not.
Anonymous » 02 мар 2024, 14:18
Последнее сообщение Anonymous «
Anonymous »
full error message: terminate called after throwing an instance of 'cv::Exception' what(): OpenCV(4.9.0-dev) /home/princess-ellie/opencv/modules/highgui/src/window.cpp:1255: error: (-2:Unspecified error) The function is not implemented. Rebuild the...
Anonymous » 02 мар 2024, 14:13
Последнее сообщение Anonymous «
Anonymous »
I am currently working on a project involving property handlers, specifically targeting .txt files. As a newcomer to this field, I have encountered an issue that I'm struggling to resolve and would greatly appreciate your guidance.
Вы можете начинать темы Вы можете отвечать на сообщения Вы не можете редактировать свои сообщения Вы не можете удалять свои сообщения Вы можете добавлять вложения