Boost logo

Boost :

Subject: Re: [boost] [http] Design ideas for a request router
From: Rodrigo Madera (rodrigo.madera_at_[hidden])
Date: 2016-03-15 20:36:24

On Tue, Mar 15, 2016 at 7:37 PM, Gavin Lambert <gavinl_at_[hidden]>

> On 16/03/2016 06:02, Rodrigo Madera wrote:
>> However, on the technical side, I'm more on the idea that everything that
>>>> can be done at compile time, should be done at compile time. Handlers,
>>>> even
>>>> routes, should be handled in compile time. [1]. This is C++, after all.
>>> While compile time should be the preferred option, it still must be
>>> possible to modify routes (and other things) at runtime as well (even if
>>> that requires adding a "dynamic_route" rule at compile time or similar).
>> I agree that runtime configuration is a primary concern. However, I beg to
>> differ on privileging compile times over (possibly) more efficient code.
>> If
>> possible, make this a define so the user can choose at will.
> To clarify, by "compile time" I meant "code evaluated during compile" or
> "static routing", not "the duration of compilation". ie.
> constexpr/template-based routing, which is what seemed to be under
> discussion.

Indeed, I misread your words. Sorry for the confusion. Anyway, we agree on


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