Skip to main content
1 vote
1 answer
41 views

I have a tooltip element floating above the cursor. The size of the tooltip is obviously dependent on its content. I also need the tooltip to be completely visible inside the viewport, thus I set the ...
Otto Abnormalverbraucher's user avatar
Advice
0 votes
8 replies
93 views

Respected users, When a template function is called then during template argument deduction and substitution (which happens before overload resolution) of function template, do function parameter ...
HeartBleed's user avatar
2 votes
0 answers
114 views

I have the following classes adapted from the section "Adapter versus policy" page 515 of "Hands-on Design Patterns with C++": a Value class with basic operations decorators/...
Benny's user avatar
  • 160
1 vote
1 answer
191 views

At compile time, one of the various similar errors are: fixed_test.cpp:6:32: note: there are 3 candidates 6 | std::cout<<a<<"+"<<b<<"="<<(a+b)&...
user20695956's user avatar
0 votes
1 answer
152 views

I have a class model that is good case for CRTP templates. Most information is static, the classes are singletons, therefore I can access them using their type names as opposed to object references. ...
Nilsie's user avatar
  • 100
2 votes
1 answer
145 views

I have an aggregate class template with two element array inside: template<typename T> struct A { T t[2]; }; and I would like to initialize an object of this class using class template argument ...
Fedor's user avatar
  • 25.7k
3 votes
2 answers
213 views

I'm using .tpp files to store template implementations. However, modifying a .tpp file does not trigger recompilation, because Make does not generate an .o file from a .tpp source. Still, these ...
Saint-Martin's user avatar
5 votes
1 answer
268 views

I think I understand the purpose of std::type_identity_t, that it's supposed to help in the scenario where type deduction of a template does not require all template arguments to determine the ...
Krupip's user avatar
  • 5,608
Best practices
0 votes
1 replies
104 views

I am working on a project right now which is to create a synthetic data generation agent. My agent will receive some PDF like a bank statement and bank reconciliation which are related to each other, ...
Ayanokoji's user avatar
Advice
0 votes
0 replies
60 views

AI Website Builders vs. Ready-Made Templates: Which offers better long-term scalability and Affordability ? I have been working in the SEO and admin templates industry since 2017, and I am seeing a ...
SANJAY JOSHI's user avatar
0 votes
1 answer
91 views

I have a template function for which all instantiations will be done via generated template specialization codes. template <typename Type> std::vector<std::string> get_members() { ...
Burak's user avatar
  • 2,602
Best practices
0 votes
1 replies
46 views

I'm building a photobook website where users can upload photos and create their own photobooks from templates. The problem is I don't have experience with building a photo editor or template system. I'...
Namuun Msst's user avatar
4 votes
1 answer
152 views

To explan my question, I'll use a simplied example here: Given a struct with a vector in it and I need to do something with it (e.g., concatenate with another). Considering its size, flexibility and ...
isatin's user avatar
  • 231
Advice
0 votes
6 replies
134 views

I have an implementation of CRTP with multilevel inheritance that I think works pretty well. Any external method call will always call the most derived implementation. Furthermore, if any method ...
Ramon's user avatar
  • 1,349
4 votes
2 answers
174 views

Greggs is a class which contains the tuple sausage_roll and const array flavours. The tuple contains ints and strings whilst the array is made up of variants. The makeOrder method should set a value ...
Existn't's user avatar
  • 173

15 30 50 per page
1
2 3 4 5
3716