Subject: [Boost-bugs] [Boost C++ Libraries] #10063: Option should exist to include ublas entirely from headers without linking to serialization
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-05-21 05:38:31
#10063: Option should exist to include ublas entirely from headers without linking
to serialization
--------------------------------------+---------------------
Reporter: Andrew Medlin <andrew@â¦> | Owner: guwi17
Type: Patches | Status: new
Milestone: Boost 1.56.0 | Component: uBLAS
Version: Boost 1.55.0 | Severity: Problem
Keywords: ublas serialization |
--------------------------------------+---------------------
If you include certain ublas files which you wish to include as headers
only without linking to prebuilt libs, you get link errors wanting to link
to prebuild serialization library.
This problem occurred for example when I included the following in my
application:
{{{
#include <boost/numeric/ublas/fwd.hpp>
#include <boost/numeric/ublas/vector.hpp>
#include <boost/numeric/ublas/vector_sparse.hpp>
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/numeric/ublas/matrix_sparse.hpp>
#include <boost/numeric/ublas/storage_sparse.hpp>
#include <boost/numeric/ublas/banded.hpp>
#include <boost/numeric/ublas/triangular.hpp>
#include <boost/numeric/ublas/blas.hpp>
#include <boost/numeric/ublas/lu.hpp>
}}}
The attached patch introduces an option BOOST_UBLAS_DISABLE_SERIALIZATION
which (if defined using a #define) excludes the serialization code.
The serialization code is unwanted on my platform for ublas objects, as
the platform is obscure and difficult to build the serialization library
for it.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10063> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:16 UTC