message::version is a member function (API Change):

fix #778

* The version data member is replaced with accessor
  member functions.

Actions Required:

* Call member function message::version instead of accessing
  the version member at call sites.
This commit is contained in:
Vinnie Falco committed 2017-09-12 17:13:02 -07:00
1 parent 54fe7cacf7
commit 38e28966ea
33 files changed
+218 -178

No files matched your search

+3 -15
View File
@@ -100,7 +100,7 @@ swap(
swap(
static_cast<Fields&>(h1),
static_cast<Fields&>(h2));
swap(h1.version, h2.version);
swap(h1.version_, h2.version_);
swap(h1.method_, h2.method_);
}
@@ -115,18 +115,6 @@ header(Arg1&& arg1, ArgN&&... argn)
{
}
#if 0
template<class Fields>
template<class... Args>
header<false, Fields>::
header(status result, unsigned version_, Args&&... args)
: Fields(std::forward<Args>(args)...)
, version(version_)
, result_(result)
{
}
#endif
template<class Fields>
inline
status
@@ -198,7 +186,7 @@ swap(
swap(
static_cast<Fields&>(h1),
static_cast<Fields&>(h2));
swap(h1.version, h2.version);
swap(h1.version_, h2.version_);
swap(h1.result_, h2.result_);
}
@@ -378,7 +366,7 @@ prepare_payload(std::true_type)
this->chunked(false);
}
}
else if(this->version >= 11)
else if(this->version() >= 11)
{
this->chunked(true);
}
+2 -2
View File
@@ -27,7 +27,7 @@ void
serializer<isRequest, Body, Fields>::
frdinit(std::true_type)
{
frd_.emplace(m_, m_.version, m_.method());
frd_.emplace(m_, m_.version(), m_.method());
}
template<
@@ -36,7 +36,7 @@ void
serializer<isRequest, Body, Fields>::
frdinit(std::false_type)
{
frd_.emplace(m_, m_.version, m_.result_int());
frd_.emplace(m_, m_.version(), m_.result_int());
}
template<