Error in the documentation

Feedback on the POCO Community website.
petrux
Posts: 17
Joined: 07 Sep 2007, 15:30

Error in the documentation

Postby petrux » 24 Sep 2007, 17:53

Hi there,

I noticed an error in the documentation. In th "Introduction", go at the "Put it all together" section and search for the following code:

Code: Select all


void defineOptions(OptionSet& options)
    {
        ServerApplication::defineOptions(options);

        options.addOption(
        Option("help", "h", "display argument help information")
            .required(false)
            .repeatable(false)
            .callback(OptionCallback(
                this, &SampleApp::handleHelp)));
    }


The "&SampleApp" is a reference to an object of a non existing type. I guess that first you called the application "SampleApp" instead of "HTTPTimeServer". I changed this reference with a "&HTTPTimeServer" and everything worked fine! ;-)

Hope this helps,

petrux

guenter
Posts: 1190
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: Error in the documentation

Postby guenter » 25 Sep 2007, 21:00

Thanks. I have fixed it for the next release.


Return to “Site Feedback”

Who is online

Users browsing this forum: No registered users and 1 guest