Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [c++]

C++ is a general-purpose programming language. Use this tag for questions about/utilizing C++. Do not also tag questions with [c] unless you have a good reason. C and C++ are different languages. Use a versioned tag such as [c++11], [c++20] etc. for questions specific to a standard revision.

2 votes
1 answer
313 views
+250

Why can't CLion see header files, using the WSL2 toolchain?

My setup: Windows 10 Pro 22H2 (19045.2965) CLion 2020.1.3 (JetBrains) WSL2 with Ubuntu 22.04.2 LTS gcc 11.3.0 cmake 3.22.1 gdb 12.1 gmake 4.3 CMakeLists.txt cmake_minimum_required(VERSION 3.22)...
J Vines's user avatar
  • 310
1 vote
0 answers
102 views
+50

what is required to build an xtensor based adaptor of std::vector with shapes and strides?

I'm in the middle of building the xtensor example "structures that embed shape and strides", to use it for an image class with its own header information. I have got as far as this: #include ...
alle_meije's user avatar
  • 2,449
-4 votes
1 answer
82 views
+50

How to login to cloud app from desktop C++ application? [closed]

I have created C++ application which connects to our cloud app . I want to login to our cloud app from this C++ application and get jwt token . With this jwt token my further api calls will happen . ...
suresh kumar's user avatar
3 votes
1 answer
138 views
+50

Behavior of concepts with a default template parameter

Consider this concept, which has a default template parameter. template<class T, class = decltype([]{})> concept IsDefined = sizeof(T) > 0; Since every lambda has a distinct type, one might ...
Drew Dormann's user avatar
  • 61.7k
0 votes
0 answers
61 views
+50

Large allocation metadata is causing fragmentation and wasting DRAM in jemalloc when using extent hooks

I am writing a simple custom extent allocator that returns extents from a pre mapped area (this way I can explicitly control the mapped area -- and the allocations in it). I am using the dev branch of ...
idle_cycles's user avatar
4 votes
0 answers
88 views
+50

how to extend std::formatter without sometimes introducing conflicts (can concepts when re-evaluated later in program return diff answer)

I am familiar with how to specialize std::formatter; it's relatively easy and clear with explicit specialization. But with partial specialization - its a challenge - due to shifting nature of various ...
lewis's user avatar
  • 1,274