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 and Nikolay Mladenov 2003. // 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 RETURN_ARG_DWA2003719_HPP # define RETURN_ARG_DWA2003719_HPP # include
# include
# include
#ifndef BOOST_PYTHON_NO_PY_SIGNATURES # include
#endif # include
# include
# include
# include
# include
# include
# include
namespace boost { namespace python { namespace detail { template
struct return_arg_pos_argument_must_be_positive # if defined(__GNUC__) && __GNUC__ >= 3 || defined(__EDG__) {} # endif ; struct return_none { template
struct apply { struct type { static bool convertible() { return true; } PyObject *operator()( typename value_arg
::type ) const { return none(); } #ifndef BOOST_PYTHON_NO_PY_SIGNATURES PyTypeObject const *get_pytype() const { return converter::expected_pytype_for_arg
::get_pytype() ; } #endif }; }; }; } template < std::size_t arg_pos=1 , class Base = default_call_policies > struct return_arg : Base { private: BOOST_STATIC_CONSTANT(bool, legal = arg_pos > 0); public: typedef typename mpl::if_c< legal , detail::return_none , detail::return_arg_pos_argument_must_be_positive
// we could default to the base result_converter in case or // arg_pos==0 since return arg 0 means return result, but I // think it is better to issue an error instead, cause it can // lead to confusions >::type result_converter; template
static PyObject* postcall(ArgumentPackage const& args, PyObject* result) { // In case of arg_pos == 0 we could simply return Base::postcall, // but this is redundant BOOST_STATIC_ASSERT(arg_pos > 0); result = Base::postcall(args,result); if (!result) return 0; Py_DECREF(result); return incref( detail::get(mpl::int_
(),args) ); } template
struct extract_return_type : mpl::at_c
{ }; }; template < class Base = default_call_policies > struct return_self : return_arg<1,Base> {}; }} // namespace boost::python #endif // RETURN_ARG_DWA2003719_HPP
return_arg.hpp
Page URL
File URL
Prev
66/85
Next
Download
( 2 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.