Bug 32001 - apply the patch below to support -std=c++11
Summary: apply the patch below to support -std=c++11
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: boost-devel-headers (show other bugs)
Version: unstable
Hardware: all Linux
: P3 blocker
Assignee: Ivan A. Melnikov
QA Contact: qa-sisyphus
URL: https://bugs.archlinux.org/task/45356
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-19 16:29 MSK by viy
Modified: 2016-05-12 18:33 MSK (History)
2 users (show)

See Also:


Attachments
proposed patch (1.27 KB, patch)
2016-04-19 16:29 MSK, viy
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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)