Boost logo

Boost-Build :

Subject: Re: [Boost-build] vacpp and templates
From: Xavier Pegenaute (xpegenaute_at_[hidden])
Date: 2008-10-14 11:27:43


Hi,

On dt, 2008-10-14 at 17:13 +0400, VoidEx wrote:

> Other way is to write templates in headers (or "inline" files) and include
> them, that used in most cases.

What does the other way means exactly? Actually I have something like:

1.h
template <typename A>
class B {
  void foo(A & a);
};

template <typename A>
void B::foo(A & a){ ... };

2.cpp
#include "1.h"

B<int> b();
b.foo(3);

Thanks & Regards.
Xavi.


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk