Questions tagged [templates]
The templates tag is used in multiple contexts: generic programming (especially C++), and data/document generation using template engines, web template for a pre-designed webpage, or set of HTML webpages. When using this tag on implementation heavy questions - tag the code language the implementation is written in.
templates
55,331
questions
0
votes
1
answer
57
views
ambiguous partial specializations
I have a big 3rd party library that I am trying to compile with latest clang (version 19) and I keep running into ambiguous partial specializations error. A minimal sample to reproduce the issue looks ...
2
votes
1
answer
73
views
Order of c++ template arguments affecting compilation
I just encountered a new compilation error in my code after a visual studio update. I have stripped my code down to what I think is a minimal example. I have two templated functions both called pow - ...
-1
votes
0
answers
10
views
template inetgration options other than template engine [closed]
I am working on an Express.js project where I need to replace placeholders in an HTML file with data from a JSON file. However, I want the HTML file to look like an actual page instead of having ...
-4
votes
0
answers
19
views
3cx Crm Template Wizard [closed]
In the Call Journilizing json data set
feilds set for the text and user the 3xc number
Every thing show Empty and my rest api is not hit
i am try to creat a Template for my custom built crm i make ...
0
votes
1
answer
50
views
How is the friend function accessed in the case of accessing private class member? [duplicate]
This is a tricky tactic to access a private member of class.
But I can't get the point of declaration of friend get inside struct A_member?
#include <iostream>
struct A {
private:
int member;
...
0
votes
0
answers
23
views
Problem with VBA buttons in Word Template
I'm creating a Word Template .dotm. In this template I add many informations about products from a spreadsheet, and the user can select products using a list and searchbox, and for each product ...
0
votes
1
answer
61
views
Get templated struct without knowing initial template arguments
I am looking for a way to get a specified templated struct from the custom Node classes I am building without having to static_cast or dynamic_cast when I get the pointers. What ways can I use to ...
0
votes
2
answers
73
views
Templated constructor of abstract class without parameter type deduction in C++
I want my abstract base class to have a templated constructor, but can't get it to work without an extra parameter to deduct the type from.
I want to do something like this:
class Base {
public:
...
0
votes
0
answers
7
views
Matx react side bar expanding when window is shrunk
I'm using Matx react to make a desktop application. When I have the window maximized it looks like this:
But as soon as I try to drag the window it becomes like this:
Can someone tell me where is ...
1
vote
1
answer
26
views
How to use void for std::conditional_t in C++17
I try to define the std::function template arguments of a class member based on a std::conditional_t type:
template <class T, size_t N = 1>
class MyClass {
static_assert( (N > 0), "0 ...
0
votes
0
answers
12
views
Classes disappeared in Gmail in RSS campaign
My problem is that I have designed email in an RSS campaign when I send this email to Outlook or yahoo it works fine there either on desktop or mobile. But when I sent this in Gmail the classes ...
-8
votes
1
answer
120
views
how may I invoke the c++ template function? [duplicate]
I am new to c++. can anyone please guide me how may I invoke the template function "debug" here.
The below code compiles fine.
#include <bits/stdc++.h>
using namespace std;
template&...
4
votes
1
answer
84
views
Can I use template parameters to refer to base class member functions?
I'm trying to understand why this code doesn't compile with GCC but compiles with MSVC:
template<class TParams>
class Selector : public TParams::DataSource1, public TParams::DataSource2
{
...
-1
votes
0
answers
14
views
How to put link in my blogger website's random post crossed icon
How to put link in my blogger website's random post crossed icon in the right side of the top main menu. Its the Xmag theme of sora templates. Please see the attached screenshot, i have highlighted ...
0
votes
1
answer
100
views
Is it possible to have arrays of mixed C++ templates with known identical SizeOf?
As an example, I have a slab of code something like this:
template <typename T, typename MyTIO>
struct Ticklite
{
using Ticklite_Impl = T;
using Impl_InOut = MyTIO;
TickliteCadence ...