Subject: [Boost-bugs] [Boost C++ Libraries] #4880: TI compiler: compiling circular_buffer fails
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-11-22 15:47:50
#4880: TI compiler: compiling circular_buffer fails
-----------------------------------------------------+----------------------
Reporter: Krzysztof Czainski <1czajnik@â¦> | Owner: jano_gaspar
Type: Bugs | Status: new
Milestone: To Be Determined | Component: circular_buffer
Version: Boost 1.45.0 | Severity: Problem
Keywords: |
-----------------------------------------------------+----------------------
Hello,
1.45.0 is the seventh version of boost, which I am successfully using with
a Texas Instruments compiler (actually, only some header-only parts of
boost).
However, for every new version of boost i must make this change in
boost/circular_buffer:
{{{
Index: base.hpp
===================================================================
--- base.hpp (revision 41)
+++ base.hpp (working copy)
@@ -2081,6 +2081,9 @@
throw_exception(std::length_error("circular_buffer"));
#if BOOST_CB_ENABLE_DEBUG
pointer p = (n == 0) ? 0 : m_alloc.allocate(n, 0);
+#ifdef __TI_COMPILER_VERSION__
+ std
+#endif // __TI_COMPILER_VERSION__
::memset(p, cb_details::UNINITIALIZED, sizeof(value_type) * n);
return p;
#else
@@ -2124,6 +2127,9 @@
m_alloc.destroy(p);
#if BOOST_CB_ENABLE_DEBUG
invalidate_iterators(iterator(this, p));
+#ifdef __TI_COMPILER_VERSION__
+ std
+#endif // __TI_COMPILER_VERSION__
::memset(p, cb_details::UNINITIALIZED, sizeof(value_type));
#endif
}
}}}
In order to avoid a compilation error: the global scope has no "memset".
So I thought maybe this could be resolved once and for all ;-)
Cheers
Kris
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4880> 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:04 UTC