Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenMesh
OpenMesh
Commits
12ad76fc
Commit
12ad76fc
authored
Nov 08, 2016
by
Janis Born
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
attempt to quench 'Checked Iterator' warnings in VS2015
parent
22554e00
Pipeline
#3564
failed with stage
in 44 minutes and 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/OpenMesh/Core/Geometry/Vector11T.hh
src/OpenMesh/Core/Geometry/Vector11T.hh
+6
-6
No files found.
src/OpenMesh/Core/Geometry/Vector11T.hh
View file @
12ad76fc
...
...
@@ -182,8 +182,8 @@ class VectorT {
typename
=
typename
std
::
enable_if
<
std
::
is_convertible
<
OtherScalar
,
Scalar
>
::
value
>>
vector_type
&
operator
=
(
const
VectorT
<
OtherScalar
,
DIM
>&
_rhs
)
{
std
::
transform
(
_rhs
.
data
(),
_rhs
.
data
()
+
DIM
,
data
(),
[](
OtherScalar
rhs
)
{
std
::
transform
(
_rhs
.
cbegin
(),
_rhs
.
cend
()
,
this
->
begin
(),
[](
OtherScalar
rhs
)
{
return
static_cast
<
Scalar
>
(
std
::
move
(
rhs
));
});
return
*
this
;
...
...
@@ -193,7 +193,7 @@ class VectorT {
Scalar
*
data
()
{
return
values_
.
data
();
}
/// access to const Scalar array
const
Scalar
*
data
()
const
{
return
values_
.
data
();
}
const
Scalar
*
data
()
const
{
return
values_
.
data
();
}
//----------------------------------------------------------- element access
...
...
@@ -382,8 +382,8 @@ class VectorT {
auto
operator
|
(
const
VectorT
<
OtherScalar
,
DIM
>&
_rhs
)
const
->
decltype
(
*
this
->
data
()
*
*
_rhs
.
data
())
{
return
std
::
inner_product
(
data
()
+
1
,
data
()
+
DIM
,
_rhs
.
data
()
+
1
,
*
data
()
*
*
_rhs
.
data
());
return
std
::
inner_product
(
begin
(),
begin
()
+
DIM
,
_rhs
.
begin
()
+
1
,
*
begin
()
*
*
_rhs
.
begin
());
}
//------------------------------------------------------------ euclidean norm
...
...
@@ -604,7 +604,7 @@ class VectorT {
template
<
typename
Functor
>
inline
vector_type
apply
(
const
Functor
&
_func
)
const
{
vector_type
result
;
std
::
transform
(
result
.
values_
.
begin
(),
result
.
values_
.
end
(),
std
::
transform
(
result
.
values_
.
c
begin
(),
result
.
values_
.
c
end
(),
result
.
values_
.
begin
(),
_func
);
return
result
;
}
...
...
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