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
fdd6a1dc
Commit
fdd6a1dc
authored
Aug 27, 2019
by
Gennadiy Civil
Browse files
Merge pull request #2382 from kuzkry:dead-metafunction
PiperOrigin-RevId: 265730482
parents
6a3d632f
44de8697
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
13 deletions
+0
-13
googlemock/include/gmock/internal/gmock-internal-utils.h
googlemock/include/gmock/internal/gmock-internal-utils.h
+0
-13
No files found.
googlemock/include/gmock/internal/gmock-internal-utils.h
View file @
fdd6a1dc
...
...
@@ -340,19 +340,6 @@ GTEST_API_ WithoutMatchers GetWithoutMatchers();
template
<
typename
T
>
struct
remove_reference
{
typedef
T
type
;
};
// NOLINT
template
<
typename
T
>
struct
remove_reference
<
T
&>
{
typedef
T
type
;
};
// NOLINT
// DecayArray<T>::type turns an array type U[N] to const U* and preserves
// other types. Useful for saving a copy of a function argument.
template
<
typename
T
>
struct
DecayArray
{
typedef
T
type
;
};
// NOLINT
template
<
typename
T
,
size_t
N
>
struct
DecayArray
<
T
[
N
]
>
{
typedef
const
T
*
type
;
};
// Sometimes people use arrays whose size is not available at the use site
// (e.g. extern const char kNamePrefix[]). This specialization covers that
// case.
template
<
typename
T
>
struct
DecayArray
<
T
[]
>
{
typedef
const
T
*
type
;
};
// Disable MSVC warnings for infinite recursion, since in this case the
// the recursion is unreachable.
#ifdef _MSC_VER
...
...
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