Skip to content

Commit

Permalink
Fix GCC error caused by extraneous "template".
Browse files Browse the repository at this point in the history
  • Loading branch information
Beman committed Sep 11, 2013
1 parent ccf846d commit 077c714
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/boost/btree/index_helpers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ namespace btree
std::size_t size_sz = codec::encoded_size(sv.size());
flat_file_type::position_type pos = file.file_size();
file.increment_file_size(size_sz + sv.size()); // will resize if needed
codec::encode(sv.size(), file.template data<char>() + pos, size_sz);
codec::encode(sv.size(), file.data<char>() + pos, size_sz);
pos += size_sz;
std::memcpy(file.template data<char>() + pos, sv.data(), sv.size());
std::memcpy(file.data<char>() + pos, sv.data(), sv.size());
}

template <>
Expand Down

0 comments on commit 077c714

Please sign in to comment.