mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Tidy up usage of std::begin, std::end
This commit is contained in:
@@ -20,11 +20,12 @@
|
||||
#ifndef BEAST_HTTP_RFC2616_H_INCLUDED
|
||||
#define BEAST_HTTP_RFC2616_H_INCLUDED
|
||||
|
||||
#include <boost/regex.hpp>
|
||||
#include <algorithm>
|
||||
#include <string>
|
||||
#include <iterator>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
#include <boost/regex.hpp>
|
||||
|
||||
namespace beast {
|
||||
|
||||
@@ -130,8 +131,8 @@ trim (String const& s)
|
||||
{
|
||||
using std::begin;
|
||||
using std::end;
|
||||
auto first (begin(s));
|
||||
auto last (end(s));
|
||||
auto first = begin(s);
|
||||
auto last = end(s);
|
||||
std::tie (first, last) = trim (first, last);
|
||||
return { first, last };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user