DriveHQ Start Menu
Cloud Drive Mapping
Folder Sync
True Drop Box
FTP/SFTP Hosting
Group Account
Team Anywhere
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
|
Cloud-to-Cloud Backup
|
DVR/Camera Backup
FTP, Email & Web Service
FTP/SFTP Hosting
|
Email Hosting
|
Web Hosting
|
Webcam Hosting
Other Products & Services
Team Anywhere
|
Connect to Remote PC
|
Cloud Surveillance
|
Virtual CCTV NVR
Quick Links
Security and Privacy
Customer Support
Service Manual
Use Cases
Group Account
Online Help
Support Forum
Contact Us
About DriveHQ
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
Personal Features
Personal Cloud Drive
Backup All Devices
Mobile APPs
Personal Web Hosting
Sub-Account (for Kids)
Home/PC/Kids Monitoring
Other Features
Team Anywhere (Remote Desktop Service)
CameraFTP Cloud Surveillance
Software
DriveHQ Drive Mapping Tool
DriveHQ FileManager
DriveHQ Online Backup
DriveHQ Team Anywhere for Windows (Beta)
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
#ifndef BOOST_PP_IS_ITERATING /////////////////////////////////////////////////////////////////////////////// /// \file pass_through.hpp /// TODO // // Copyright 2007 Eric Niebler. 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_PROTO_TRANSFORM_PASS_THROUGH_HPP_EAN_12_26_2006 #define BOOST_PROTO_TRANSFORM_PASS_THROUGH_HPP_EAN_12_26_2006 #include
#include
#include
#include
#include
#include
#include
#include
namespace boost { namespace proto { namespace transform { namespace detail { template
struct pass_through_impl {}; #define BOOST_PROTO_DEFINE_TRANSFORM_TYPE(z, n, data)\ typename Grammar::BOOST_PP_CAT(proto_arg, n)\ ::template apply
\ ::type #define BOOST_PROTO_DEFINE_TRANSFORM(z, n, data)\ Grammar::BOOST_PP_CAT(proto_arg, n)::call(\ expr.BOOST_PP_CAT(arg, n).proto_base(), state, visitor\ ) #define BOOST_PP_ITERATION_PARAMS_1 (3, (1, BOOST_PROTO_MAX_ARITY,
)) #include BOOST_PP_ITERATE() #undef BOOST_PROTO_DEFINE_TRANSFORM #undef BOOST_PROTO_DEFINE_TRANSFORM_TYPE template
struct pass_through_impl
{ typedef Expr type; static Expr const &call(Expr const &expr, State const &, Visitor &) { return expr; } }; } // namespace detail template
struct pass_through : Grammar { pass_through() {} template
struct apply : detail::pass_through_impl< Grammar , typename Expr::proto_base_expr , State , Visitor , Expr::proto_arity::value > {}; template
static typename apply
::type call(Expr const &expr, State const &state, Visitor &visitor) { return apply
::call(expr.proto_base(), state, visitor); } }; } // namespace transform template
struct is_transform
> : mpl::true_ {}; namespace has_transformns_ { template
struct has_pass_through_transform { has_pass_through_transform() {} template
struct apply : transform::detail::pass_through_impl< Grammar , typename Expr::proto_base_expr , State , Visitor , Expr::proto_arity::value > {}; template
static typename apply
::type call(Expr const &expr, State const &state, Visitor &visitor) { return apply
::call(expr.proto_base(), state, visitor); } }; } // namespace has_transformns_ }} // namespace boost::proto #endif #else #define N BOOST_PP_ITERATION() template
struct pass_through_impl
{ typedef expr< typename Expr::proto_tag , BOOST_PP_CAT(args, N)< BOOST_PP_ENUM(N, BOOST_PROTO_DEFINE_TRANSFORM_TYPE, ~) > > type; #if BOOST_WORKAROUND(BOOST_MSVC, == 1310) template
static type call(Expr2 const &expr, State2 const &state, Visitor2 &visitor) #else static type call(Expr const &expr, State const &state, Visitor &visitor) #endif { type that = { BOOST_PP_ENUM(N, BOOST_PROTO_DEFINE_TRANSFORM, ~) }; #if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1400)) // Without this, MSVC complains that "that" is uninitialized, // and it actually triggers a runtime check in debug mode when // built with VC8. &that; #endif return that; } }; #undef N #endif
pass_through.hpp
Page URL
File URL
Prev
10/10 Next
Download
( 5 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.