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
// ---------------------------------------------------------------------------- // workarounds for gcc < 3.0. // ---------------------------------------------------------------------------- // Copyright Samuel Krempp 2003. Use, modification, and distribution are // subject to 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/format for library home page // ---------------------------------------------------------------------------- // There's a lot to do, the stdlib shipped with gcc prior to 3.x // was terribly non-conforming. // . defines macros switches // . supplies template classes basic_foo
where gcc only supplies foo. // i.e : // - basic_ios
from ios // - basic_ostream
from ostream // - basic_srteambuf
from streambuf // these can be used transparently. (it obviously does not work for wchar_t) // . specialise CompatAlloc and CompatTraits to wrap gcc-2.95's // string_char_traits and std::alloc #if BOOST_WORKAROUND(__GNUC__, < 3) && !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION) // only for gcc-2.95's native stdlib #ifndef BOOST_FORMAT_WORKAROUNDS_GCC295_H #define BOOST_FORMAT_WORKAROUNDS_GCC295_H // SGI STL doesnt have
and others, so we need iostream. #include
#define BOOST_FORMAT_OSTREAM_DEFINED #include
#define BOOST_FORMAT_STREAMBUF_DEFINED #define BOOST_NO_TEMPLATE_STD_STREAM #ifndef BOOST_IO_STD # define BOOST_IO_STD std:: #endif // *** // gcc's simple classes turned into standard-like template classes : namespace std { // gcc has string_char_traits, it's incomplete. // we declare a std::char_traits, and specialize CompatTraits<..> on it // to do what is required template
class char_traits; // no definition here, we will just use it as a tag. template
class basic_streambuf; template
class basic_streambuf
: public streambuf { }; template
> class basic_ios; template
class basic_ios
: public ostream { public: basic_ios(streambuf * p) : ostream(p) {}; char fill() const { return ios::fill(); } // gcc returns wchar.. char fill(char c) { return ios::fill(c); } // gcc takes wchar.. char widen(char c) { return c; } char narrow(char c, char def) { return c; } basic_ios& copyfmt(const ios& right) { fill(right.fill()); flags(right.flags() ); exceptions(right.exceptions()); width(right.width()); precision(right.precision()); return *this; } }; typedef ios ios_base; template
class basic_ostream; template
class basic_ostream
: public basic_ios
{ public: basic_ostream(streambuf * p) : basic_ios
(p) {} }; } // namespace std namespace boost { namespace io { // ** CompatTraits gcc2.95 specialisations ---------------------------- template
class CompatTraits< ::std::string_char_traits
> : public ::std::string_char_traits
{ public: typedef CompatTraits compatible_type; typedef Ch char_type; typedef int int_type; typedef ::std::streampos pos_type; typedef ::std::streamoff off_type; static char_type to_char_type(const int_type& meta) { return static_cast
(meta); } static int_type to_int_type(const char_type& ch) { return static_cast
(static_cast
(ch) );} static bool eq_int_type(const int_type& left, const int_type& right) { return left == right; } static int_type eof() { return static_cast
(EOF); } static int_type not_eof(const int_type& meta) { return (meta == eof()) ? 0 : meta; } }; template
class CompatTraits< ::std::char_traits
> { public: typedef CompatTraits< ::std::string_char_traits
> compatible_type; }; // ** CompatAlloc gcc-2.95 specialisations --------------------------- template<> class CompatAlloc< ::std::alloc> { public: typedef ::std::allocator
compatible_type; }; } // N.S. io } // N.S. boost #endif // include guard #endif // if workaround
workarounds_gcc-2_95.hpp
Page URL
File URL
Prev
5/6
Next
Download
( 4 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.