mirror of
https://github.com/wuye9036/CppTemplateTutorial.git
synced 2024-03-22 13:11:16 +08:00
[ADD] add std:: in code samples
This commit is contained in:
parent
5a35f19341
commit
473d64aeaa
|
@ -2384,7 +2384,7 @@ template <typename T> void inc_counter(T& intTypeCounter);
|
|||
template <typename T> void inc_counter(
|
||||
T& counterObj,
|
||||
typename std::enable_if<
|
||||
is_base_of<T, ICounter>::value
|
||||
std::is_base_of<T, ICounter>::value
|
||||
>::type* = nullptr );
|
||||
|
||||
template <typename T> void inc_counter(
|
||||
|
@ -2558,7 +2558,7 @@ template <typename ArgT>
|
|||
void foo(
|
||||
ArgT&& a,
|
||||
typename std::enabled_if<
|
||||
is_same<std::decay_t<ArgT>, float>::value
|
||||
std::is_same<std::decay_t<ArgT>, float>::value
|
||||
>::type* = nullptr
|
||||
);
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue
Block a user