Category "c++"

MISRA 5-0-15 - Pointer Arithmetic - Rule Violation

The following code violates the MISRA C++ rule 5-0-15: Array indexing shall be the only form of pointer arithmetic. (1) void doSomething(const uint8_t *&ptr

default constructor of "Library::Transaction" cant be referenced -- it's a deleted function

I really don't know what is wrong with my code, I have only pasted the entire code now (EDIT 1). #include "../../std_lib_facilities.h" class Date { public:

Linux read dilemma

I need to read from a fifo. Using ssize_t read(int fd, void *buf, size_t count);, I faced the following situation. When a large set of data must be read from fi

What does 'corrupt value' mean on iOS?

I'm writing C++ on my iOS app. When I call a v->assign(anotherVec.begin(), anotherVec.end()) it always show me malloc: Incorrect checksum for freed object 0x

Array of structures, file opening, distance comparison

I'm trying to make an array of structures using data from a file, and then calculate the distance from a user inputted point to the closest data point. I am los

How to write c++ code to reverse a string without using inbuilt function?

I have write this code. It does not show any error but string is not reversed.please let me know where i have made the mistake? I'm using codeblock to write cod

Array of structures, file opening, distance comparison

I'm trying to make an array of structures using data from a file, and then calculate the distance from a user inputted point to the closest data point. I am los

General question about nearest neighbor data structures

I want to improve the speed of my feature matching algorithm. The matching is based on comparing feature A with circularly shifted feature B. The shifting is pe

What's the right way to send a multi dimensional array from a python script to a C++ code using NamedPipes?

I have a C++ code that expects a struct with this exact formate to be send to it through a NamedPipe:- struct InputData { const std::array<std::array<fl

What's the right way to send a multi dimensional array from a python script to a C++ code using NamedPipes?

I have a C++ code that expects a struct with this exact formate to be send to it through a NamedPipe:- struct InputData { const std::array<std::array<fl

Ignite C++. Can the following APIs be used?

I was wondering if the following APIs are available in Ignite C++. And if they are not available, what would be a reasonable alternative to implementing the sam

Ignite C++. Can the following APIs be used?

I was wondering if the following APIs are available in Ignite C++. And if they are not available, what would be a reasonable alternative to implementing the sam

Create rectangle from given words by some rules

i got this task to make, but i am completely lost. I don't know how to make this... Could you please give me some ideas? I started making it and only thing i ma

Drawing a 3D cuboid and rotating it in OpenGL

I am trying to draw a 3D cuboid by clicking on one of the corner points and then extending it based on the dimensions provided by the user, and then rotating it

How to override BOOST_TEST with an absolute tolerance

I have data with a small dynamic range, and a moderate level of fuzziness (atomic coordinates). I'd like to write tests that check that two coordinates are pret

Android packages are ignored when using VCPKG with manifest mode

I was trying to install android libraries using vcpkg manifest, but they are simply skipped for some reason. I am lost, pls tell me what I am doing wrong. This

Can't display OpenCV VideoCapture in Qt

I want to display the content of my VideoCapture in a QGraphicsView, however if I run the Program my WebCam activates, but nothing is displayed onto my Graphics

Type conflicts in non-type template argument deduction

#include<type_traits> template <typename T, T> struct A { }; template <typename T, T t> void f(A<T, t>) { } int main() { f(A<c

Measuring OpenMP Fork/Join latency

Since MPI-3 comes with functionality for shared memory parallelism, and it seems to be perfectly matched for my application, I'm critically considering rewritin

Double clicking in SFML doesnt work as expected

I am working on a recreation of minesweeper using cpp and SFML. I have coded the board and the tiles switch to their revealed states when you left click on them