On Friday 22 November 2002 12:47 pm, Jean-Marc Lasgouttes wrote:
> >>>>> "John" == John Levon <[EMAIL PROTECTED]> writes:
>
> John> On Fri, Nov 22, 2002 at 10:55:58AM +0100, Lars Gullik Bjønnes
>
> John> wrote:
> >> | bang goes the freeze huh
> >>
> >> And I still do not know what compiler is used...
>
> John> beside the point. it's not as if boost breaking everybody's
> John> compilers is a new phenomenon. And now half the develoeprs can't
> John> get on with fixing the real bugs until all the problems are
> John> sorted out. hurrah ...
>
> And before too much work gets done on trying to get it to work, I'd
> propose to revert the patch, and think again about it in 1.4.0.
>
> Please.

It does seem to be a lot of pain for small gain...
FWIW, Lars, here is the patch that means it works here.
Angus
? src/bibtex
? src/insets/withdialog.C
? src/insets/withdialog.h
Index: boost/boost/format/parsing.hpp
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/boost/boost/format/parsing.hpp,v
retrieving revision 1.1
diff -u -p -r1.1 parsing.hpp
--- boost/boost/format/parsing.hpp	20 Nov 2002 17:20:54 -0000	1.1
+++ boost/boost/format/parsing.hpp	22 Nov 2002 12:00:47 -0000
@@ -69,7 +69,7 @@ namespace detail {
     // Effects : advance *pos_p by skipping printf's asterisk fields.
     // Returns : nothing
   {
-    assert( pos_p);
+    assert( pos_p != 0);
     if(*pos_p >= buf.size() ) return;
     if(buf[ *pos_p]==os.widen('*')) {
       ++ (*pos_p);
@@ -105,7 +105,7 @@ namespace detail {
     //           - *fpar is set with the parameters read in the directive
   {
     typedef format_item<Ch, Tr>  format_item_t;
-    assert( pos_p);
+    assert( pos_p != 0);
     typename std::basic_string<Ch, Tr>::size_type       &i1 = *pos_p,
 							i0;
     fpar->argN_ = format_item_t::argN_no_posit;  // if no positional-directive
Index: src/BoostFormat.h
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/BoostFormat.h,v
retrieving revision 1.1
diff -u -p -r1.1 BoostFormat.h
--- src/BoostFormat.h	21 Nov 2002 18:33:01 -0000	1.1
+++ src/BoostFormat.h	22 Nov 2002 12:00:47 -0000
@@ -4,14 +4,17 @@
 
 #include <boost/format.hpp>
 
-// Add explicit instantion
+// Add explicit instantiation
 
-namespace boost
-{
+#ifdef __GNUG__
 
-  extern
-  template basic_format<char>;
+namespace boost {
+
+extern
+template basic_format<char>;
 
 } // namespace boost
+
+#endif // __GNUG__
 
 #endif
Index: src/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/ChangeLog,v
retrieving revision 1.979
diff -u -p -r1.979 ChangeLog
--- src/ChangeLog	21 Nov 2002 19:50:35 -0000	1.979
+++ src/ChangeLog	22 Nov 2002 12:00:50 -0000
@@ -1,3 +1,7 @@
+2002-11-22  Angus Leeming  <[EMAIL PROTECTED]>
+
+	* lyx_main.C (init): boost::format compile fix.
+
 2002-11-21  John Levon  <[EMAIL PROTECTED]>
 
 	* pspell.C: fix compile
Index: src/lyx_main.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/lyx_main.C,v
retrieving revision 1.127
diff -u -p -r1.127 lyx_main.C
--- src/lyx_main.C	21 Nov 2002 18:33:05 -0000	1.127
+++ src/lyx_main.C	22 Nov 2002 12:00:50 -0000
@@ -353,7 +353,7 @@ void LyX::init(bool gui)
 					<< "Giving up." << endl;
 				exit(1);
 			}
-			lyxerr << boost::format(_("Using built-in default %1$s but expect problems.")) % LYX_DIR
+			lyxerr << boost::format(_("Using built-in default %1$s but expect problems.")) % static_cast<char *>(LYX_DIR)
 			       << endl;
 		} else {
 			lyxerr << _("Expect problems.") << endl;

Reply via email to