2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-22 17:32:55 +00:00

VC7.1 alpha adjustments

[SVN r15003]
This commit is contained in:
Dave Abrahams
2002-08-20 19:22:14 +00:00
parent 6e3c6d1ba8
commit c104f0167f
4 changed files with 5 additions and 5 deletions

View File

@@ -16,12 +16,12 @@ struct registration;
namespace detail
{
struct BOOST_PYTHON_DECL arg_to_python_base
# if !defined(BOOST_MSVC) || BOOST_MSVC <= 1300 || _MSC_FULL_VER > 13102171
# if !defined(BOOST_MSVC) || BOOST_MSVC <= 1300 || _MSC_FULL_VER > 13102179
: handle<>
# endif
{
arg_to_python_base(void const volatile* source, registration const&);
# if defined(BOOST_MSVC) && BOOST_MSVC > 1300 && _MSC_FULL_VER <= 13102171
# if defined(BOOST_MSVC) && BOOST_MSVC > 1300 && _MSC_FULL_VER <= 13102179
PyObject* get() const { return m_ptr.get(); }
PyObject* release() { return m_ptr.release(); }
private:

View File

@@ -38,7 +38,7 @@ namespace detail
{
arg_to_python_base::arg_to_python_base(
void const volatile* source, registration const& converters)
# if !defined(BOOST_MSVC) || _MSC_FULL_VER != 13102171
# if !defined(BOOST_MSVC) || BOOST_MSVC <= 1300 || _MSC_FULL_VER > 13102179
: handle<>(converter::convert_to_python(source, converters))
# else
: m_ptr(converter::convert_to_python(source, converters))

View File

@@ -268,7 +268,7 @@ namespace objects
object module_name = PyObject_IsInstance(scope().ptr(), upcast<PyObject>(&PyModule_Type))
? scope().attr("__name__")
: getattr(scope(), "__module__", object(""))
: api::getattr(scope(), "__module__", object(""))
;
if (module_name)

View File

@@ -6,7 +6,7 @@
#include <boost/python/object/inheritance.hpp>
#include <boost/python/type_id.hpp>
#include <boost/graph/breadth_first_search.hpp>
#if defined(BOOST_MSVC) && _MSC_FULL_VER == 13102171
#if _MSC_FULL_VER >= 13102171 && _MSC_FULL_VER <= 13102179
# include <boost/graph/reverse_graph.hpp>
#endif
#include <boost/graph/adjacency_list.hpp>