General C++ Programming - April 2024

Mismatch overload problem
 
Why does s have the value false? template<typename T> char test_have_range(decltype(&T::begi...
[1 reply] : #ifndef DUTHOMHAS_IS_ITERABLE_HPP #define DUTHOMHAS_IS_ITERABLE_HPP ... (by Duthomhas)
How to test if a type T has a begin<T> defined
 
I have a SFINAE context where I have the following: struct have_sort { char c; }; struct ha...
[no replies]
why testing for member pointer determines the template type is a class?
 
why does this code determine if the type is a class: template<typename T> class is_class { templ...
[4 replies] Last: Thanks!! (by JUANDENT)
Trouble with seeing where variable is initialized?
 
Hello, This question is in regards to the initialization of the variable value_type value; I ca...
[4 replies] Last: [quote=lostwithcpp]this is only for structs, not classes? Technically... (by Peter87)
by Cplusc
C1090 error (1,2)
 
I am getting the following annoying and frustrating error which appeared suddenly out of nowhere. th...
[23 replies] Last: hardware that old wouldn't be able to slot enough ram to run it either... (by jonnin)
by PacR
Read nested structures from file.
 
Hi guyz im having trouble reading structures from text file containing: // this is example.txt...
[19 replies] Last: As another take on this, consider: #include <iostream> #include <fs... (by seeplus)
How to find the Type of a struct that is passed as an argument and the template arguments for a lambda function?
 
The question I have pertains to the type of the structs that are passed as a function argument into ...
[5 replies] Last: thanks for all the help (by lostwithcpp)
by cn00by
"large" project, crashes, variable "overlap", gdb
 
hello, i searching for days for an Segmentation fault. What i ve done: i try: - valgrind - gd...
[1 reply] : The code that you have posted does not contain any header files. If t... (by Peter87)
how can I generalize a structure using templates?
 
Hi, This is something I don't want to write for each table in a database and am sure templates woul...
[5 replies] Last: used templates! (by JUANDENT)
What is the difference between module partitions and submodules?
 
I have a module called math that export imports two submodules like this: export module math; ...
[4 replies] Last: I haven’t touched modules yet. I'm working through some of the bas... (by deleted account xyzzy)
cannot access OnEvent(Button&, int)!
 
class EmptyType {}; template < class TList, template <class AtomicType, class...
[2 replies] Last: thanks!! (by JUANDENT)
by Cplusc
Applying Boundary Condition
 
Firstly, I'd like to extend my apologies to anyone viewing this question, as it may not strictly per...
[3 replies] Last: @Cplusc Ok, no worries. Have you made any progress using a debugger? (by TheIdeasMan)
A problem with GenLinearHierarchy from Alexandrescu's design
 
Hi, I am studying Andrei Alexandrescu's Modern C++ Design book and cannot access the OnEvent(Butt...
[no replies]
  Archived months: [mar2024] [may2024]

This is an archived page. To post a new message, go to the current page.