DriveHQ Start Menu
Cloud Drive Mapping
Folder Sync
Cloud Backup
True Drop Box
FTP/SFTP Hosting
Group Account
DriveHQ Start Menu
Online File Server
My Storage
|
Manage Shares
|
Publishes
|
Drop Boxes
|
Group Account
WebDAV Drive Mapping
Cloud Drive Home
|
WebDAV Guide
|
Drive Mapping Tool
|
Drive Mapping URL
Complete Data Backup
Backup Guide
|
Online Backup Tool
|
Cloud-to-Cloud Backup
FTP, Email & Web Service
FTP Home
|
FTP Hosting FAQ
|
Email Hosting
|
EmailManager
|
Web Hosting
Help & Resources
About
|
Enterprise Service
|
Partnership
|
Comparisons
|
Support
Quick Links
Security and Privacy
Download Software
Service Manual
Use Cases
Group Account
Online Help
Blog
Contact
Cloud Surveillance
Sign Up
Login
Features
Business Features
Online File Server
FTP Hosting
Cloud Drive Mapping
Cloud File Backup
Email Backup & Hosting
Cloud File Sharing
Folder Synchronization
Group Management
True Drop Box
Full-text Search
AD Integration/SSO
Mobile Access
IP Camera & DVR Solution
More...
Personal Features
Personal Cloud Drive
Backup All Devices
Mobile APPs
Personal Web Hosting
Sub-Account (for Kids)
Home/PC/Kids Monitoring
More...
Software
DriveHQ Drive Mapping Tool
DriveHQ FileManager
DriveHQ Online Backup
DriveHQ Mobile Apps
Pricing
Business Plans & Pricing
Personal Plans & Pricing
Price Comparison with Others
Feature Comparison with Others
Install Mobile App
Sign up
Creating account...
Invalid character in username! Only 0-9, a-z, A-Z, _, -, . allowed.
Username is required!
Invalid email address!
E-mail is required!
Password is required!
Password is invalid!
Password and confirmation do not match.
Confirm password is required!
I accept
Membership Agreement
Please read the Membership Agreement and check "I accept"!
Free Quick Sign-up
Sign-up Page
Log in
Signing in...
Username or e-mail address is required!
Password is required!
Keep me logged in
Quick Login
Forgot Password
Up
Upload
Download
Share
Publish
New Folder
New File
Copy
Cut
Delete
Paste
Rate
Upgrade
Rotate
Effect
Edit
Slide
History
// (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com) // (C) Copyright 2003-2007 Jonathan Turkanis // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.) // See http://www.boost.org/libs/iostreams for documentation. #ifndef BOOST_IOSTREAMS_DETAIL_RESOLVE_HPP_INCLUDED #define BOOST_IOSTREAMS_DETAIL_RESOLVE_HPP_INCLUDED #if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif #include
// partial spec, put size_t in std. #include
// std::size_t. #include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
// true_. #include
#if !BOOST_WORKAROUND(BOOST_MSVC, <= 1300) # include
#endif // #if BOOST_WORKAROUND(BOOST_MSVC, <= 1300) #include
// Must come last. #include
// VC7.1 C4224. namespace boost { namespace iostreams { namespace detail { //------------------Definition of resolve-------------------------------------// #ifndef BOOST_IOSTREAMS_BROKEN_OVERLOAD_RESOLUTION //-------------------------// template
struct resolve_traits { typedef typename mpl::if_< boost::detail::is_incrementable
, output_iterator_adapter
, const T& >::type type; }; # ifndef BOOST_IOSTREAMS_NO_STREAM_TEMPLATES //-------------------------------// template
typename resolve_traits
::type resolve( const T& t BOOST_IOSTREAMS_DISABLE_IF_STREAM(T) // I suspect that the compilers which require this workaround may // be correct, but I'm not sure why :( #if BOOST_WORKAROUND(BOOST_INTEL_CXX_VERSION, BOOST_TESTED_AT(810)) ||\ BOOST_WORKAROUND(__MWERKS__, BOOST_TESTED_AT(0x3205)) || \ BOOST_WORKAROUND(BOOST_IOSTREAMS_GCC, BOOST_TESTED_AT(400)) \ /**/ , typename disable_if< is_iterator_range
>::type* = 0 #endif ) { typedef typename resolve_traits
::type return_type; return return_type(t); } template
mode_adapter< Mode, std::basic_streambuf
> resolve(std::basic_streambuf
& sb) { return mode_adapter< Mode, std::basic_streambuf
>(wrap(sb)); } template
mode_adapter< Mode, std::basic_istream
> resolve(std::basic_istream
& is) { return mode_adapter< Mode, std::basic_istream
>(wrap(is)); } template
mode_adapter< Mode, std::basic_ostream
> resolve(std::basic_ostream
& os) { return mode_adapter< Mode, std::basic_ostream
>(wrap(os)); } template
mode_adapter< Mode, std::basic_iostream
> resolve(std::basic_iostream
& io) { return mode_adapter< Mode, std::basic_iostream
>(wrap(io)); } template
array_adapter
resolve(Ch (&array)[N]) { return array_adapter
(array); } # if !BOOST_WORKAROUND(BOOST_MSVC, <= 1300) template
range_adapter< Mode, boost::iterator_range
> resolve(const boost::iterator_range
& rng) { return range_adapter< Mode, boost::iterator_range
>(rng); } # endif // #if BOOST_WORKAROUND(BOOST_MSVC, <= 1300) # else // # ifndef BOOST_IOSTREAMS_NO_STREAM_TEMPLATES //---------------------// template
typename resolve_traits
::type resolve( const T& t BOOST_IOSTREAMS_DISABLE_IF_STREAM(T) #if defined(__GNUC__) , typename disable_if< is_iterator_range
>::type* = 0 #endif ) { typedef typename resolve_traits
::type return_type; return return_type(t); } template
mode_adapter
resolve(std::streambuf& sb) { return mode_adapter
(wrap(sb)); } template
mode_adapter
resolve(std::istream& is) { return mode_adapter
(wrap(is)); } template
mode_adapter
resolve(std::ostream& os) { return mode_adapter
(wrap(os)); } template
mode_adapter
resolve(std::iostream& io) { return mode_adapter
(wrap(io)); } template
array_adapter
resolve(Ch (&array)[N]) { return array_adapter
(array); } template
range_adapter< Mode, boost::iterator_range
> resolve(const boost::iterator_range
& rng) { return range_adapter< Mode, boost::iterator_range
>(rng); } # endif // # ifndef BOOST_IOSTREAMS_NO_STREAM_TEMPLATES //--------------------// #else // #ifndef BOOST_IOSTREAMS_BROKEN_OVERLOAD_RESOLUTION //----------------// template
struct resolve_traits { // Note: test for is_iterator_range must come before test for output // iterator. typedef typename iostreams::select< // Disambiguation for Tru64. is_std_io
, mode_adapter
, is_iterator_range
, range_adapter
, is_dereferenceable
, output_iterator_adapter
, is_array
, array_adapter
, else_, #if !BOOST_WORKAROUND(__BORLANDC__, < 0x600) const T& #else T #endif >::type type; }; template
typename resolve_traits
::type resolve(const T& t, mpl::true_) { // Bad overload resolution. typedef typename resolve_traits
::type return_type; return return_type(wrap(const_cast
(t))); } template
typename resolve_traits
::type resolve(const T& t, mpl::false_) { typedef typename resolve_traits
::type return_type; return return_type(t); } template
typename resolve_traits
::type resolve(const T& t BOOST_IOSTREAMS_DISABLE_IF_STREAM(T)) { return resolve
(t, is_std_io
()); } # if !BOOST_WORKAROUND(__BORLANDC__, < 0x600) && \ !BOOST_WORKAROUND(BOOST_MSVC, <= 1300) && \ !defined(__GNUC__) // ---------------------------------------------------// template
typename resolve_traits
::type resolve(T& t, mpl::true_) { typedef typename resolve_traits
::type return_type; return return_type(wrap(t)); } template
typename resolve_traits
::type resolve(T& t, mpl::false_) { typedef typename resolve_traits
::type return_type; return return_type(t); } template
typename resolve_traits
::type resolve(T& t BOOST_IOSTREAMS_ENABLE_IF_STREAM(T)) { return resolve
(t, is_std_io
()); } # endif // Borland 5.x, VC6-7.0 or GCC 2.9x //--------------------------------// #endif // #ifndef BOOST_IOSTREAMS_BROKEN_OVERLOAD_RESOLUTION //---------------// } } } // End namespaces detail, iostreams, boost. #include
// VC7.1 4224. #endif // BOOST_IOSTREAMS_DETAIL_RESOLVE_HPP_INCLUDED
resolve.hpp
Page URL
File URL
Prev
30/38
Next
Download
( 8 KB )
Note: The DriveHQ service banners will NOT be displayed if the file owner is a paid member.
Comments
Total ratings:
0
Average rating:
Not Rated
Would you like to comment?
Join DriveHQ
for a free account, or
Logon
if you are already a member.