Apply upstream commit to adopt boost-1.65.1 upgrade 22/183022/1 accepted/tizen_5.0_unified accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix tizen_5.0 tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.0/unified/20181102.030942 accepted/tizen/5.5/unified/20191031.011822 accepted/tizen/5.5/unified/mobile/hotfix/20201027.074246 accepted/tizen/5.5/unified/wearable/hotfix/20201027.100934 accepted/tizen/unified/20180702.062927 submit/tizen/20180630.115537 submit/tizen_5.0/20181101.000007 submit/tizen_5.5/20191031.000007 submit/tizen_5.5_mobile_hotfix/20201026.185107 submit/tizen_5.5_wearable_hotfix/20201026.184307 tizen_5.5.m2_release
authorSoonKyu Park <sk7.park@samsung.com>
Sat, 30 Jun 2018 11:49:47 +0000 (20:49 +0900)
committerSoonKyu Park <sk7.park@samsung.com>
Sat, 30 Jun 2018 11:51:22 +0000 (20:51 +0900)
Originally from by V. Zhestkov: Adapt bindings to work with boost-1.62

Change-Id: I9676b210376d79cd7af27866328697bbe481b1e5

swig/ResPool.i
swig/zypp.i

index 08154f8..b9f24e9 100644 (file)
@@ -3,6 +3,11 @@
 %ignore zypp::ResPool::byKindEnd;
 %ignore zypp::ResPool::byNameBegin;
 %ignore zypp::ResPool::byNameEnd;
+#if (BOOST_VERSION >= 106501)
+%ignore zypp::ResPool::byStatus;  
+%ignore zypp::ResPool::byStatusBegin;  
+%ignore zypp::ResPool::byStatusEnd; 
+#endif
 %apply unsigned { zypp::ResPool::size_type };
 %include <zypp/ResPool.h>
 
index 5c1c5fc..1cf9a4d 100644 (file)
 
 // stuff swig seems to be unable to parse
 #define BOOST_NOEXCEPT
+#define BOOST_SP_NOEXCEPT  
+#define BOOST_SP_NOEXCEPT_WITH_ASSERT  
 #define BOOST_NO_CXX11_NOEXCEPT
 #define BOOST_NO_CXX11_RVALUE_REFERENCES
 #define BOOST_NO_CXX11_SMART_PTR
+#if (BOOST_VERSION >= 106501)
+#define BOOST_CONSTEXPR_OR_CONST const
+#define constexpr
+#define BOOST_CONSTEXPR constexpr
+#else
 #define BOOST_CONSTEXPR
 #define BOOST_CONSTEXPR_OR_CONST const
 #define constexpr
-
+#endif
 %{
 /* Includes the header in the wrapper code */
 #ifdef SWIGRUBY
@@ -209,6 +216,11 @@ namespace zypp {
 %include "std_string.i"
 %include "stl.i"
 
+#if (BOOST_VERSION >= 106501)
+%import <boost/config.hpp>  
+%import <boost/pointer_cast.hpp>  
+#endif
+
 #ifdef BOOST_SMARTPTR_INCLUDE_DIR
 %import <boost/smart_ptr/scoped_ptr.hpp>
 %import <boost/smart_ptr/shared_ptr.hpp>