#4880 closed Bugs (fixed)
TI compiler: compiling circular_buffer fails
| Reported by: | Owned by: | Jan Gaspar | |
|---|---|---|---|
| Milestone: | Boost 1.46.0 | Component: | circular_buffer |
| Version: | Boost 1.45.0 | Severity: | Problem |
| Keywords: | Cc: |
Description
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
Change History (2)
comment:1 by , 12 years ago
| Milestone: | To Be Determined → Boost-1.46.0 |
|---|---|
| Resolution: | → fixed |
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

Fixed in trunk.