Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
01e229ba
Commit
01e229ba
authored
Jul 24, 2015
by
kosak
Browse files
Fix an instance of move-pessimization.
parent
794ef030
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
include/gtest/internal/gtest-port.h
include/gtest/internal/gtest-port.h
+1
-1
No files found.
include/gtest/internal/gtest-port.h
View file @
01e229ba
...
...
@@ -1334,7 +1334,7 @@ const T& move(const T& t) {
// similar functions users may have (e.g., implicit_cast). The internal
// namespace alone is not enough because the function can be found by ADL.
template
<
typename
To
>
inline
To
ImplicitCast_
(
To
x
)
{
return
::
testing
::
internal
::
move
(
x
)
;
}
inline
To
ImplicitCast_
(
To
x
)
{
return
x
;
}
// When you upcast (that is, cast a pointer from type Foo to type
// SuperclassOfFoo), it's fine to use ImplicitCast_<>, since upcasts
...
...
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