The templates tag is used in multiple contexts: generic programming (especially C++), and data/document generation using template engines.

learn more…| top users | synonyms (1)

0
votes
0answers
22 views

Eigen: Initializing Matrix to Identity does not compile

I have a template class B that derives from a template class A. Class A has 3 template parameters (the follow is A.h): #ifndef A_HEADER#define A_HEADER#include "Eigen/Dense"template<...
1
vote
0answers
43 views

Using SFINAE to select friend or base class c++x03

Hi I was trying to use SFINAE to check if a variable exists on a class and use it to define which friend should I use, and I found out that when I check the value from has_helloworld it fails to ...
-1
votes
0answers
20 views

Generate PDF from document template

For a project I need to generate several documents from database data. In my case I'm using PHP on the backend and plain HTML and JS on the frontend. I've already tried to generate some documents with ...
1
vote
1answer
12 views

Python Jinja2 template render with string

I am trying to render html template with Jinja2 - putting in variable values, which are extracted from Pandas dataframes. Currently I have variables hardcoded into render command, as seen below:...
-1
votes
0answers
9 views

Suitecrm Email templates after the change will not be saved

After the update to 7.9.12, the changed email templates are no longer saved or only one line is saved, but even with a new template, no success.When I create a new template and click Save, all text ...
9
votes
1answer
432 views

How can a class template store either reference or value?

Reading about universal references led me to wonder: how can I construct a class template such that it stores by reference if possible, or by value if it must?That is, can I do something like this...
-3
votes
0answers
25 views

Include HTML Tag rendering for inputs in text field

How to allow user inputted HTML tags to be accepted as tags as opposed to string in a text field in admin tab?
0
votes
0answers
11 views

transform skew - dillema on screen proportion

The layout design, 4 gray areas are designated to buttons, for "1250x782" screen resolutionSo, I had a concern about code a button with a layout design from that image link above.While testing the ...
-2
votes
1answer
19 views

include does not work in a template on live instance in django 1.11

I work with django 1.11 and I have a problem with include at base.html.When I work on localhost - everything is OK. The problem starts when the code goes live, on the server.The problem is here:{...
1
vote
2answers
34 views

How remove a header and footer with affecting the styling in wordpress [on hold]

Im trying to remove the header and footer from a template page I wordpress via a custom php template, but want to keep the original styling of the theme.I have successfully removed the footer, but am ...
0
votes
0answers
15 views

Static variable type and dependent class template using nested lambdas

The actual source code is voluminous, so I have phrased this question using syntax similar to psuedo-code, while highlighting the usage context within the actual source code.The templatetemplate&...
1
vote
0answers
32 views

Forward parameter pack to pointer function (unknown types)

I am trying to write an es6 Promise-like class for c++ without the use of an external library (in my project I can't use boost or the std lib).I am having troubles handling the callback that's ...
1
vote
0answers
54 views

Is it legal to pass a non-capturing lambda as a non-type template parameter to a function? Works in clang, not in gcc

In the code below, on the first form, gcc complains about having a lambda in a template parameter. In the second form, gcc complains about lambda_function_pointer not having external linkage. Clang ...
0
votes
0answers
9 views

use django template with dash application

I have set-up a dash application that works well with my django website, but I would like to have the dash application on a page that has a template.The setup I have is the usual one, that is :...
0
votes
0answers
28 views

Passing member function that accepts Base type to class that owns Derived type

ExampleIn example above I've tried to store pointer-to-member_function of the overloaded function in the template-based class.The problem is that overloaded function uses Base class as parameter ...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,