Boost logo

Boost :

Subject: [boost] Refactoring a library for header-only or linked library?
From: Paul A. Bristow (pbristow_at_[hidden])
Date: 2012-04-01 04:54:37

I am considering refactoring a (potential Boost) library separating declarations and definitions
into two sets of files with the objective of reducing compilation times and allow it to be used as
header-only or linking with a pre-built library.

Is there is best/Boost way of doing this?

Is there a Boost library that I should use as a model? ASIO?

Should I call the definition files .cpp or .ipp?

Should definition files go in libs/src or in boost/?

How should I control the header-only/library switch?

View and suggestions?



Paul A. Bristow,
Prizet Farmhouse, Kendal LA8 8AB  UK
+44 1539 561830  07714330204

Boost list run by bdawes at, gregod at, cpdaniel at, john at