Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/taocpp/json
Browse files Browse the repository at this point in the history
  • Loading branch information
d-frey committed May 4, 2019
2 parents b06b1c2 + 0021e6e commit 5caa85c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions include/tao/json/contrib/position.hpp
Expand Up @@ -4,6 +4,11 @@
#ifndef TAO_JSON_CONTRIB_POSITION_HPP
#define TAO_JSON_CONTRIB_POSITION_HPP

#include <ostream>
#include <string>
#include <type_traits>
#include <utility>

#include "../events/to_value.hpp"
#include "../events/transformer.hpp"
#include "../message_extension.hpp"
Expand All @@ -26,10 +31,10 @@ namespace tao
{
}

position( const std::string& in_source, const std::size_t in_line, const std::size_t in_byte_in_line )
position( std::string in_source, const std::size_t in_line, const std::size_t in_byte_in_line )
: m_line( in_line ),
m_byte_in_line( in_byte_in_line ),
m_source( in_source )
m_source( std::move( in_source ) )
{
}

Expand Down

0 comments on commit 5caa85c

Please sign in to comment.