Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
senf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wiback
senf
Commits
ca71f6d0
Commit
ca71f6d0
authored
17 years ago
by
g0dil
Browse files
Options
Downloads
Patches
Plain Diff
Socket: Add boost::disable_if conditions to ClientSocketHandle::read members for disambiguation
parent
7cb6237f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Socket/ClientSocketHandle.cti
+6
-2
6 additions, 2 deletions
Socket/ClientSocketHandle.cti
Socket/ClientSocketHandle.hh
+6
-2
6 additions, 2 deletions
Socket/ClientSocketHandle.hh
with
12 additions
and
4 deletions
Socket/ClientSocketHandle.cti
+
6
−
2
View file @
ca71f6d0
...
...
@@ -141,7 +141,9 @@ senf::ClientSocketHandle<Policy>::operator=(ClientSocketHandle<OtherPolicy> othe
template <class Policy>
template <class ForwardWritableRange>
prefix_ typename boost::range_iterator<ForwardWritableRange>::type
senf::ClientSocketHandle<Policy>::read(ForwardWritableRange const & range)
senf::ClientSocketHandle<Policy>::
read(ForwardWritableRange const & range,
typename boost::disable_if< boost::is_convertible<ForwardWritableRange,unsigned> >::type *)
{
return detail::ReadRange<
ClientSocketHandle<Policy>,
...
...
@@ -155,7 +157,9 @@ senf::ClientSocketHandle<Policy>::read(ForwardWritableRange const & range)
template <class Policy>
template <class ForwardWritableRange>
prefix_ typename boost::range_iterator<ForwardWritableRange>::type
senf::ClientSocketHandle<Policy>::read(ForwardWritableRange & range)
senf::ClientSocketHandle<Policy>::
read(ForwardWritableRange & range,
typename boost::disable_if< boost::is_convertible<ForwardWritableRange,unsigned> >::type *)
{
return detail::ReadRange<
ClientSocketHandle<Policy>,
...
...
This diff is collapsed.
Click to expand it.
Socket/ClientSocketHandle.hh
+
6
−
2
View file @
ca71f6d0
...
...
@@ -30,6 +30,8 @@
// Custom includes
#include
<boost/call_traits.hpp>
#include
<boost/range.hpp>
#include
<boost/utility.hpp>
#include
<boost/type_traits.hpp>
#include
"SocketHandle.hh"
//#include "ClientSocketHandle.mpp"
...
...
@@ -173,7 +175,8 @@ namespace senf {
std
::
string
read
(
unsigned
limit
=
0
);
template
<
class
ForwardWritableRange
>
typename
boost
::
range_iterator
<
ForwardWritableRange
>::
type
read
(
ForwardWritableRange
const
&
range
);
read
(
ForwardWritableRange
const
&
range
,
typename
boost
::
disable_if
<
boost
::
is_convertible
<
ForwardWritableRange
,
unsigned
>
>::
type
*
=
0
);
///< Read data into range
/**< Read data into the given range. At most
<tt>boost::size(range)</tt> characters are read. The
...
...
@@ -188,7 +191,8 @@ namespace senf {
<a href="http://www.boost.org/libs/range/index.html">Boost.Range</a> */
template
<
class
ForwardWritableRange
>
typename
boost
::
range_iterator
<
ForwardWritableRange
>::
type
read
(
ForwardWritableRange
&
range
);
read
(
ForwardWritableRange
&
range
,
typename
boost
::
disable_if
<
boost
::
is_convertible
<
ForwardWritableRange
,
unsigned
>
>::
type
*
=
0
);
///< Read data into range
/**< \see read(ForwardWritableRange const &) \n
read() \n
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment