Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
ce2b56b2
Commit
ce2b56b2
authored
5 years ago
by
Nat Goodspeed
Browse files
Options
Downloads
Patches
Plain Diff
DRTVWR-476: Engage variadic llmake() implementation.
parent
6b70493d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/llcommon/llmake.h
+0
-19
0 additions, 19 deletions
indra/llcommon/llmake.h
with
0 additions
and
19 deletions
indra/llcommon/llmake.h
+
0
−
19
View file @
ce2b56b2
...
...
@@ -23,9 +23,6 @@
#if ! defined(LL_LLMAKE_H)
#define LL_LLMAKE_H
// If we're using a compiler newer than VS 2013, use variadic llmake().
#if (! defined(_MSC_VER)) || (_MSC_VER > 1800)
/**
* Usage: llmake<SomeTemplate>(args...)
*
...
...
@@ -38,22 +35,6 @@ CLASS_TEMPLATE<ARGS...> llmake(ARGS && ... args)
return
CLASS_TEMPLATE
<
ARGS
...
>
(
std
::
forward
<
ARGS
>
(
args
)...);
}
#else // older implementation for VS 2013
template
<
template
<
typename
>
class
CLASS_TEMPLATE
,
typename
ARG1
>
CLASS_TEMPLATE
<
ARG1
>
llmake
(
const
ARG1
&
arg1
)
{
return
CLASS_TEMPLATE
<
ARG1
>
(
arg1
);
}
template
<
template
<
typename
,
typename
>
class
CLASS_TEMPLATE
,
typename
ARG1
,
typename
ARG2
>
CLASS_TEMPLATE
<
ARG1
,
ARG2
>
llmake
(
const
ARG1
&
arg1
,
const
ARG2
&
arg2
)
{
return
CLASS_TEMPLATE
<
ARG1
,
ARG2
>
(
arg1
,
arg2
);
}
#endif // VS 2013 workaround
/// dumb pointer template just in case that's what's wanted
template
<
typename
T
>
using
dumb_pointer
=
T
*
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment