Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenMesh
OpenMesh
Commits
12ad76fc
Commit
12ad76fc
authored
Nov 08, 2016
by
Janis Born
Browse files
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
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
Supports
Markdown
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