Questions tagged [template-aliases]
67 questions
0
votes
1 answer
Click not working using variable in testcomplete
Click not working using variable in testcomplete as following.
var okbtn= "Aliases.LateralData_Applications_Dashboard.LoginForm.btnOK";
okbtn.ClickButton();
while direct click without variable is working fine as following.
…

sanjay
- 13
- 1
- 5
0
votes
1 answer
Are gcc and clang not properly inferring template alias types?
I have the following simple example:
// Function we are interested in using.
template class A>
void B(A&) { }
template
class E { };
// "Adapter" to have only one template argument for…

ryan
- 839
- 4
- 13
0
votes
2 answers
passing a parameter pack over a legacy function signature using forward_as_tuple
In my app I would like to pass in a parameter pack over a legacy function signature, and change the values. Here is code that illustrates my question with my attempts as comments:
#include
#include
void LegacySignature( void*…

rtischer8277
- 496
- 6
- 27
0
votes
0 answers
Dependent type pack deduction fails when using void... When and why?
This question is a follow-up of another question.
Consider the following code:
template
struct S;
template
struct S { };
template
using Alias = S;
int…

skypjack
- 49,335
- 19
- 95
- 187
0
votes
1 answer
How to switch to typedef from template aliasing?
I have a template class that basically implements registry design pattern.
Values are registered with Keys and are stored in some container:
template class Container >
class…

Yakov Gerlovin
- 1
- 1
0
votes
0 answers
Template alias as a dependent name
How to call a template function based on a dependent template alias of another template function?
For instance, there is a template class and a template function, which accepts this class as a template argument:
template
struct…

Kane
- 5,595
- 1
- 18
- 27
0
votes
2 answers
C++: Trying to encapsulate std::enable_if in class
I was just using SFINAE to select function templates when I had the glorious idea to encapsulate std::enable_if in a struct like this
template
struct EnableWhenEqual
{
typedef typename std::enable_if

davidhigh
- 14,652
- 2
- 44
- 75