2001-09-02 Angus Leeming <a.leeming@ic.ac.uk>
+ * buffer.C (getLists): replace boost::tie code with an explicit pair
+ as boost::tie can break some compilers.
+
* iterators.h: Added a std:: declaration to the return type of
ParIterator::size.
#include <locale>
#endif
-#include <boost/tuple/tuple.hpp>
-
#ifdef __GNUG__
#pragma implementation
#endif
{
Lists l;
Paragraph * par = paragraph;
+
+#if 1
+ std::pair<bool, LyXTextClassList::size_type> const tmp =
+ textclasslist.NumberOfLayout(params.textclass, "Caption");
+ bool const found = tmp.first;
+ LyXTextClassList::size_type const cap = tmp.second;
+
+#else
+ // This is the prefered way to to this, but boost::tie can break
+ // some compilers
bool found;
LyXTextClassList::size_type cap;
boost::tie(found, cap) = textclasslist
.NumberOfLayout(params.textclass, "Caption");
+#endif
while (par) {
char const labeltype =