Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
5d9151df
Commit
5d9151df
authored
6 years ago
by
Studer Gabriel
Browse files
Options
Downloads
Patches
Plain Diff
silence compiler warning
parent
a3ed5623
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
modules/img/alg/src/fill.hh
+6
-4
6 additions, 4 deletions
modules/img/alg/src/fill.hh
with
6 additions
and
4 deletions
modules/img/alg/src/fill.hh
+
6
−
4
View file @
5d9151df
...
...
@@ -32,11 +32,13 @@ namespace {
template
<
typename
T
>
void
set_val
(
T
&
v
,
Real
rv
,
const
Complex
&
cv
);
template
<
>
void
set_val
<
Real
>
(
Real
&
v
,
Real
rv
,
const
Complex
&
cv
)
{
v
=
rv
;}
// commented out to silence compiler warning, as they're not needed anywhere
template
<
>
void
set_val
<
Complex
>
(
Complex
&
v
,
Real
rv
,
const
Complex
&
cv
)
{
v
=
cv
;}
//template<>
//void set_val<Real>(Real& v, Real rv, const Complex& cv) {v=rv;}
//template<>
//void set_val<Complex>(Complex& v, Real rv, const Complex& cv) {v=cv;}
template
<
typename
T
>
void
set_val
(
T
&
v
,
Real
rv
,
const
Complex
&
cv
)
...
...
This diff is collapsed.
Click to expand it.
Studer Gabriel
@studga00
mentioned in commit
61f4b903
·
6 years ago
mentioned in commit
61f4b903
mentioned in commit 61f4b903a842576d9030e101e6054034aac3d4c1
Toggle commit list
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