Re: [Boost-docs] using import - from two .qbk files

Subject: Re: [Boost-docs] using import - from two .qbk files
From: Paul A Bristow (pbristow_at_[hidden])
Date: 2007-08-13 14:54:39


>-----Original Message-----
>From: boost-docs-bounces_at_[hidden]
>[mailto:boost-docs-bounces_at_[hidden]] On Behalf Of Joel de Guzman
>Sent: 13 August 2007 15:10
>To: boost-docs_at_[hidden]
>Subject: Re: [Boost-docs] using import - from two .qbk files
>John Maddock wrote:
>> Paul A Bristow wrote:
>>> I am struggling using import, and have had bizarre problems with the
>>> name of the template in the imported file where changing the name
>>> seems to make it work. I get a message like:
>>> error: Could not open input file.
>>> and yet in the example below, the link
>>> [@../../example/error_handling_example.cpp
>>> finds the file OK, so am I right to be confident that
>>> [import ../../example/error_handling_example.cpp]
>>> is correct?
>> I used
>> [import ../example/error_handling_example.cpp]
>> which works OK.
>>> I have the same code (I believe) elsewhere in the docs, in a
>>> different section,
>>> and it works OK in the html.
>>> Any ideas what I am doing wrong?
>>> Is it wrong to import twice? Is it wrong to 'use' twice with
>>> [error_handling_example]?
>> You must only import once, then you can use the defined template
>> [error_handling_example] as many times as needed.
>Yep. It's a known problem. This is a reason why I asked for
>imports to have a pragma once behavior (There will be an implicit
>include guard. A qbk file will only be included once per scope).
>The same should be true for imports. I'm working on this. The first
>step is to give templates (and macros) proper scoping. This is the
>backward compatibility breaking issue I raised sometime ago.

OK - as long as I'm not doing any stupid.

Suggests I am getting ahead of myself ;-)

But I'm *really* impressed by what you can produce.

Just Hope others are too :-)

I was getting excited about writing "C++ in Color" - until the deeply held preferences on color appeared. Some people just have no

So an eBook where you can chose your own colors would be fine, but you'd need several different versions for a print version :-((


Paul A Bristow
Prizet Farmhouse, Kendal, Cumbria UK LA8 8AB
+44 1539561830 & SMS, Mobile +44 7714 330204 & SMS

This archive was generated by hypermail 2.1.7 : 2017-11-11 08:50:40 UTC