Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
OpenFlipper-Free
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
23
Issues
23
List
Boards
Labels
Service Desk
Milestones
Merge Requests
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenFlipper-Free
OpenFlipper-Free
Commits
3f56d32b
Commit
3f56d32b
authored
Nov 10, 2016
by
Martin Heistermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ACG histograms: use more general is_assignable instead of is_same.
Cf. MR
!186
parent
58449a05
Pipeline
#3613
passed with stage
in 91 minutes and 34 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ACG/Utils/Histogram.hh
ACG/Utils/Histogram.hh
+1
-1
No files found.
ACG/Utils/Histogram.hh
View file @
3f56d32b
...
...
@@ -104,7 +104,7 @@ public:
template
<
typename
IterT
>
HistogramT
(
IterT
begin
,
IterT
end
,
size_t
max_bins
)
{
static_assert
(
std
::
is_
same
<
T
,
typename
IterT
::
value_type
>::
value
,
"IterT incompatible with T."
);
static_assert
(
std
::
is_
assignable
<
T
&
,
typename
IterT
::
value_type
>::
value
,
"IterT incompatible with T."
);
static_assert
(
std
::
is_floating_point
<
typename
IterT
::
value_type
>::
value
,
"HistogramT currently only supports floating point values."
);
assert
(
max_bins
>
0
);
const
size_t
n
=
std
::
distance
(
begin
,
end
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment