Bug 32001

Summary: apply the patch below to support -std=c++11
Product: Sisyphus Reporter: viy <viy>
Component: boost-devel-headersAssignee: Ivan A. Melnikov <iv>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: blocker    
Priority: P3 CC: iv, sem
Version: unstable   
Hardware: all   
OS: Linux   
URL: https://bugs.archlinux.org/task/45356
Attachments:
Description Flags
proposed patch none

Description viy 2016-04-19 16:29:39 MSK
Created attachment 6693 [details]
proposed patch

with -std=c++11
instead of BOOST_UBLAS_INLINE template <size_t N>
we should write
template <size_t N> BOOST_UBLAS_INLINE

see also similar patch at https://github.com/uBLAS/ublas/commit/19eb8cf30af812c8434dfc7e5f0c6c7ded5477d0

--- /usr/include/boost/numeric/ublas/storage.hpp~	2016-04-02 11:34:46.000000000 +0000
+++ /usr/include/boost/numeric/ublas/storage.hpp	2016-04-19 13:07:41.126116952 +0000
@@ -777,9 +777,9 @@
         BOOST_UBLAS_INLINE
         shallow_array_adaptor (size_type size, pointer data):
             size_ (size), own_ (false), data_ (data, leaker<value_type> ()) {}
-        BOOST_UBLAS_INLINE
+        
         template <size_t N>
-        shallow_array_adaptor (T (&data)[N]):
+        BOOST_UBLAS_INLINE shallow_array_adaptor (T (&data)[N]):
             size_ (N), own_ (false), data_ (data, leaker<value_type> ()) {}
 
         BOOST_UBLAS_INLINE
@@ -833,14 +833,14 @@
         void resize (size_type size, pointer data, value_type init) {
             resize_internal (size, data, init, true);
         }
-        BOOST_UBLAS_INLINE
+        
         template <size_t N>
-        void resize (T (&data)[N]) {
+        BOOST_UBLAS_INLINE void resize (T (&data)[N]) {
             resize_internal (N, data, value_type (), false);
         }
-        BOOST_UBLAS_INLINE
+        
         template <size_t N>
-        void resize (T (&data)[N], value_type init) {
+        BOOST_UBLAS_INLINE void resize (T (&data)[N], value_type init) {
             resize_internal (N, data, init, true);
         }
Comment 1 viy 2016-04-19 16:33:38 MSK
blocks removal of boost 1.57 -
rebuild of libompl fails w/o this patch.
Comment 2 viy 2016-04-19 16:38:54 MSK
found the same bug in bugs.archlinux.org:
https://bugs.archlinux.org/task/45356
Comment 3 viy 2016-04-26 21:10:53 MSK
ping
я бы и сам NMU выложил, да acl у меня нету :(
может, @qa добавить?
Comment 4 Repository Robot 2016-05-12 18:28:45 MSK
boost-1:1.58.0-alt4 -> sisyphus:

* Thu May 12 2016 Igor Vlasenko <viy@altlinux> 1:1.58.0-alt4
- NMU: added patch37 (closes: #32001)