program_options on sunpro cc

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

program_options on sunpro cc

Chris Bond-3
Hello,

I've attached a patch to allow the program_options library to build on
Sun's C++ compiler.


Cheers,

Chris Bond

diff -ru boost_1_33_1/libs/program_options/src/options_description.cpp boost/libs/program_options/src/options_description.cpp
--- boost_1_33_1/libs/program_options/src/options_description.cpp Wed Jul 13 09:32:40 2005
+++ boost/libs/program_options/src/options_description.cpp Thu Mar 30 18:35:19 2006
@@ -384,7 +384,7 @@
                         {                
                             // is last_space within the second half ot the
                             // current line
-                            if (unsigned(distance(last_space, line_end)) <
+                            if (static_cast<unsigned int>(distance(last_space, line_end)) <
                                 (line_length - indent) / 2)
                             {
                                 line_end = last_space;

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Reply | Threaded
Open this post in threaded view
|

Re: program_options on sunpro cc

Tomas Puverle
Chris,

If you are trying to make boost work on SunCC, check this:
http://blogs.sun.com/roller/page/sga

Tom





_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost