StackOverflow Questions for Tag: c%2B%2B23

user2138149
user2138149

Reputation: 17266

Static (constexpr) function dispatch and dependency injection with templates in C++23

Score: 1

Views: 57

Answers: 1

Read More
user2138149
user2138149

Reputation: 17266

How to build a library for tests with CMake which includes a mocked version of an existing function?

Score: -1

Views: 37

Answers: 0

Read More
einpoklum
einpoklum

Reputation: 132128

How will I throw exceptions with stack traces in C++23?

Score: 7

Views: 1975

Answers: 2

Read More
Setu
Setu

Reputation: 980

Mutable static variables in consteval contxt

Score: -1

Views: 61

Answers: 0

Read More
SimpleCoder
SimpleCoder

Reputation: 75

Visual Studio Fatal C1011 Error - cannot locate standard module interface

Score: -1

Views: 71

Answers: 0

Read More
Gashmob
Gashmob

Reputation: 75

How can I return directly result of a function call returning std::expected?

Score: 5

Views: 148

Answers: 1

Read More
Mr.Barbo
Mr.Barbo

Reputation: 119

Compile time evaluation of static arrays

Score: 5

Views: 145

Answers: 0

Read More
darune
darune

Reputation: 11012

Lifetime problems with RAII style encapsulation when the "resource manager" is not global

Score: 1

Views: 159

Answers: 2

Read More
Crutch
Crutch

Reputation: 33

How can a sprintf-like function in C++20/23 verify that the number of format specifiers matches the number of provided arguments at compile time?

Score: 3

Views: 131

Answers: 1

Read More
appelflap796
appelflap796

Reputation: 77

How to resolve Fatal error: 'print' file not found?

Score: 6

Views: 2828

Answers: 1

Read More
Graznarak
Graznarak

Reputation: 3734

Catch std::bad_expected_access

Score: 4

Views: 82

Answers: 1

Read More
rubenvb
rubenvb

Reputation: 76775

How can I elegantly fill/initialize two (or more) ranges from a range containing pairs/tuples of elements?

Score: 4

Views: 97

Answers: 1

Read More
rubenvb
rubenvb

Reputation: 76775

How can I make TBB parallel_for_each work with std::views::zip?

Score: 7

Views: 116

Answers: 1

Read More
khteh
khteh

Reputation: 3976

integer overflow in expression of type ‘int’ results in ‘1’ [-Woverflow]

Score: -3

Views: 96

Answers: 2

Read More
HeliumHydride
HeliumHydride

Reputation: 81

Allowing a function to accept braced initializer lists without another overload

Score: 1

Views: 108

Answers: 1

Read More
user2138149
user2138149

Reputation: 17266

Can std::ifstream and std::ofstream be used with a std::string_view filename argument?

Score: 3

Views: 90

Answers: 1

Read More
Raildex
Raildex

Reputation: 4765

How to constrain the value type of std::input_iterator?

Score: 2

Views: 112

Answers: 2

Read More
khteh
khteh

Reputation: 3976

VSCode CMake configure does not generate CMakeCache.txt from CMakeLists.txt

Score: -1

Views: 36

Answers: 0

Read More
Thomas Weller
Thomas Weller

Reputation: 59574

Where is it defined that references can be converted into more cv-qualified references?

Score: 1

Views: 111

Answers: 1

Read More
Jupiter
Jupiter

Reputation: 1532

Can my getter return a `std::span<T*>` if my member is of type `std::vector<std::unique_ptr<T>>`?

Score: 1

Views: 61

Answers: 1

Read More
PreviousPage 1Next