Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladiMihaylenko <vxmihaylenko@gmail.com>2018-03-05 15:05:06 +0300
committerDaria Volvenkova <d.volvenkova@corp.mail.ru>2018-03-06 12:17:41 +0300
commita0e432bf6814a1fae8e41c02e5f97ae6642385a1 (patch)
tree73ea27492b1f0b49efa1b25d41d6123aff22bcd6 /coding/streams_sink.hpp
parentfe4a26a2e1925003234f624b4db25deabdadee1b (diff)
Using _t suffix instead of ::type in whole project + using std:: somewhere.
Diffstat (limited to 'coding/streams_sink.hpp')
-rw-r--r--coding/streams_sink.hpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/coding/streams_sink.hpp b/coding/streams_sink.hpp
index 0bdacc1cc1..7ec514b446 100644
--- a/coding/streams_sink.hpp
+++ b/coding/streams_sink.hpp
@@ -17,8 +17,7 @@ namespace stream
SinkReaderStream(TReader & reader) : m_reader(reader) {}
template <typename T>
- typename enable_if<is_integral<T>::value, SinkReaderStream &>::type
- operator >> (T & t)
+ enable_if_t<is_integral<T>::value, SinkReaderStream &> operator>>(T & t)
{
t = ReadPrimitiveFromSource<T>(m_reader);
return (*this);
@@ -53,8 +52,7 @@ namespace stream
SinkWriterStream(TWriter & writer) : m_writer(writer) {}
template <typename T>
- typename enable_if<is_integral<T>::value, SinkWriterStream &>::type
- operator << (T const & t)
+ enable_if_t<is_integral<T>::value, SinkWriterStream &> operator<<(T const & t)
{
WriteToSink(m_writer, t);
return (*this);