On Fri, Jun 28, 2002 at 01:06:50AM +0200, Lars Gullik Bjønnes wrote: > | Is it really necessary to use vectors for the formats and converters > | and spend a lot of code on saerching these? > > > | Can't we just use a map<string, format> and map< pair<string, string>, > | converter> there? > > Or use a boost::graph for all the converters and use a shortest-path > algorithm to find the preferred conversion pipe-line.
Overkill. All-pair shortest paths using Floyd's algorithm is 30 lines or so. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)