> It is possible. For example, in the "Default Constructible"  
> section, you could have a section as follows:
>
> Concrete Example of a Default Constructible:
>    // T t;
>    // T = vector<int>
>    // t = a
>    vector<int> a;
>
> Should we? I'm not sure. I tutor a lot of students who would not be  
> able to use these reference documents for anything useful. Most  
> beginners learn by having concrete examples, and I've experienced a  
> few blank stares by telling beginners that an object is Assignable  
> instead of "it overloads the equals operator" while drawing it on  
> the board. The question becomes, "Should beginners bother using  
> these docs, or should they learn elsewhere? If they're not learning  
> here, where else should they go to learn?"

That's probably a good idea... I do like a good example :) I'm  
thinking something like:

Examples

All built-in types are default constructible.

        int i;
        float f;

Most of classes in the standard library are also default constructible:

        std::string s;
        std::vector<int> v;
        std::istream is;

... Something else using templates and default construction and/or a  
user-defined class. I'll work on putting some in tonight to see how  
it reads.


> I hope not ;). " The first principle is that you must not fool  
> yourself, and you are the easiest person to fool." Bend over  
> backwards to cite sources that aren't from the standard and you'll  
> be OK.

I'm pretty sure I didn't :) I've actually spent a fair amount of time  
working out the wording of those concepts.

Andrew Sutton
[EMAIL PROTECTED]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Boost-docs mailing list
[email protected]
Unsubscribe and other administrative requests: 
https://lists.sourceforge.net/lists/listinfo/boost-docs

Reply via email to