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
// Copyright David Abrahams 2006. 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) #ifndef BOOST_PARAMETER_AUX_PARENTHESIZED_TYPE_DWA2006414_HPP # define BOOST_PARAMETER_AUX_PARENTHESIZED_TYPE_DWA2006414_HPP # include
# include
namespace boost { namespace parameter { namespace aux { // A macro that takes a parenthesized C++ type name (T) and transforms // it into an un-parenthesized type expression equivalent to T. # define BOOST_PARAMETER_PARENTHESIZED_TYPE(x) \ boost::parameter::aux::unaryfunptr_arg_type< void(*)x >::type // A metafunction that transforms void(*)(T) -> T template
struct unaryfunptr_arg_type; # if !BOOST_WORKAROUND(BOOST_MSVC, <= 1300) template
struct unaryfunptr_arg_type
{ typedef Arg type; }; # else // Use the "native typeof" bugfeatures of older versions of MSVC to // accomplish what we'd normally do with partial specialization. This // capability was discovered by Igor Chesnokov. # if BOOST_WORKAROUND(BOOST_MSVC, != 1300) // This version applies to VC6.5 and VC7.1 (except that we can just // use partial specialization for the latter in this case). // This gets used as a base class. template
struct msvc_type_memory { // A nullary metafunction that will yield the Value type "stored" // at this Address. struct storage; }; template
struct msvc_store_type : msvc_type_memory
{ // VC++ somehow lets us define the base's nested storage // metafunction here, where we have the Value type we'd like to // "store" in it. Later we can come back to the base class and // extract the "stored type." typedef msvc_type_memory
location; struct location::storage { typedef Value type; }; }; # else // This slightly more complicated version of the same thing is // required for msvc-7.0 template
struct msvc_type_memory { template
struct storage_impl; typedef storage_impl
storage; }; template
struct msvc_store_type : msvc_type_memory
{ // Rather than supplying a definition for the base class' nested // class, we specialize the base class' nested template template<> struct storage_impl
{ typedef Value type; }; }; # endif // Function template argument deduction does many of the same things // as type matching during partial specialization, so we call a // function template to "store" T into the type memory addressed by // void(*)(T). template
msvc_store_type
msvc_store_argument_type(void(*)(T)); template
struct unaryfunptr_arg_type { // We don't want the function to be evaluated, just instantiated, // so protect it inside of sizeof. enum { dummy = sizeof(msvc_store_argument_type((FunctionPointer)0)) }; // Now pull the type out of the instantiated base class typedef typename msvc_type_memory
::storage::type type; }; # endif template <> struct unaryfunptr_arg_type
{ typedef void type; }; }}} // namespace boost::parameter::aux #endif // BOOST_PARAMETER_AUX_PARENTHESIZED_TYPE_DWA2006414_HPP
parenthesized_type.hpp
Page URL
File URL
Prev
7/15
Next
Download
( 3 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.