Thomas Guest wrote:
hmm... can you replace details/utils.cpp line 95 with this instead?I have a few comments on the zip archive I picked up from your website (which I suspect is out of date now)1) compile error (GCC 3.3.3) detail/utils.cpp:95: error: no matching function for call to ` std::vector<std::string, std::allocator<std::string> >::insert(int, const char[1])' ... include_paths.insert( include_paths.begin(), "" ); and if it still complains, maybe include_paths.insert( include_paths.begin(), std::string("") );
odd... looks like it might be something in boost::program_options?
Here's what I get:T:\boost\boost_1_32_0\tools\quickbook>quickbook --helpI don't know why the separators (":") are missing for your build, but the "arg" is correct, in that it indicates that this option expects to be followed by an argument value. You're probably right. detail/utils.cpp line 30 should probably be return ""; instead of return 0;3) Run time exception: $ ./quickbook.exe doc/quickbook.qbk Error: attempt to create string with null pointer I think this is caused by work-in-progress in alternate_process_name. I noticed that too. We can probably clean this up by creating a detail::load_qbk() which simply calls detail::load and then adds the extra newlines.. I'll give that a shot/4) extra newlines when loading a file detail::load(...) appends a couple of extra newlines. This is OK when parsing highlight files, qbk files but may cause unwanted whitespace when source files for highlighting are loaded in this way? Like I said, it's just a snapshot :) I'll get tabs & brace formatting cleaned up eventually. I also agree that statics are usually best avoided, but it might take some minor refactoring to do it "right" in this case (probably belongs in quickbook::actions, which is defined in detail/quickbook.cpp, which is no longer the only .cpp file...). Consider the statics are a temporary measure.5) new code in utils.cpp doesn't match current style. E.g tabs instead of spaces, different layout of braces. Use of file statics in utils.cpp (typically QuickBook passes a struct around by reference to hold working variables in a scoped manner). Absolutely fine with me. I think the doxygen->BoostBook integration needs some serious TLC, but at least it works enough for the basics to get through, and more importantly the mechanisms for how to annotate the code are already defined, it's just a matter of tightening up the integration so it uses more of what doxygen provides.Not sure how much of an issue this is, but I thought I should point it out. I leave it in the hands of the QuickBook moderators. I have also tweaked the house style by introducing some Doxygen style comments, so I hope this is OK. - james -- __________________________________________________________ James Fowler, Open Sea Consulting http://www.OpenSeaConsulting.com, Marietta, Georgia, USA Do C++ Right. http://www.OpenCpp.org, opening soon! -- __________________________________________________________ James Fowler, Open Sea Consulting http://www.OpenSeaConsulting.com, Marietta, Georgia, USA Do C++ Right. http://www.OpenCpp.org, opening soon! |
- [Boost-docs] Re: Dynamically Loadable Syntax Highighters [ ... Thomas Guest
- Re: [Boost-docs] Re: Dynamically Loadable Syntax Highighter... James Fowler
- [Boost-docs] Re: Dynamically Loadable Syntax Highighters [ ... Thomas Guest
- Re: [Boost-docs] Re: Dynamically Loadable Syntax Highighter... James Fowler
- Re: [Boost-docs] Re: Dynamically Loadable Syntax Highighter... James Fowler
- [Boost-docs] Re: Dynamically Loadable Syntax Highighters [ ... Joel de Guzman
- [Boost-docs] Re: Dynamically Loadable Syntax Highighters [ ... Thomas Guest
- [Boost-docs] Re: Dynamically Loadable Syntax Highighters [ ... Joel de Guzman
- Re: [Boost-docs] Re: Dynamically Loadable Syntax Highighter... James Fowler
- [Boost-docs] Re: Dynamically Loadable Syntax Highighters [ ... Thomas Guest
- [Boost-docs] Re: Dynamically Loadable Syntax Highighters [ ... James Fowler
- [Boost-docs] Re: Dynamically Loadable Syntax Highighters [ ... Joel de Guzman
- Re: [Boost-docs] Re: Dynamically Loadable Syntax Highighter... James Fowler
- [Boost-docs] Re: Dynamically Loadable Syntax Highighters [ ... Thomas Guest
- Re: [Boost-docs] Re: Dynamically Loadable Syntax Highighter... James Fowler
- [Boost-docs] Re: Dynamically Loadable Syntax Highighters [ ... Thomas Guest
- [Boost-docs] Re: Dynamically Loadable Syntax Highighters [ ... Thomas Guest
- [Boost-docs] Re: Dynamically Loadable Syntax Highighters Jo�o Abecasis
- [Boost-docs] Re: Dynamically Loadable Syntax Highighters [ ... Daniel James
- [Boost-docs] Re: Dynamically Loadable Syntax Highighters [ ... Joel de Guzman
- [Boost-docs] Re: Dynamically Loadable Syntax Highighters [ ... Daniel James
