On 2017 M03 22, Wed 22:11:16 CET Alexander Neundorf wrote:
> Hi,
> 
> while looking into making hpx install into lib64/, I came across
> hpx::util::find_prefixes(), which contains a loop I don't understand:
> 
> That's the code:
>        std::string prefixes = find_prefix(library);
>         typedef boost::tokenizer<boost::char_separator<char> > tokenizer;
>         boost::char_separator<char> sep(HPX_INI_PATH_DELIMITER);
>         tokenizer tokens(prefixes, sep);
>         std::string result;
>         for(tokenizer::iterator it = tokens.begin(); it != tokens.end();
> ++it) {
>         ...
> 
> 
> find_prefix(), according to the code and to the documentation, returns "the
> installation path of the specified module", i.e. 1 path.
> Why is there the need to tokenize that using a PATH_DELIMITER (":" here) and
> then iterate over all tokens ? It looks to me like there is always exactly
> one path ?

IOW, can I remove the loop, maybe add a function util::find_library_dir(), and 
return in find_prefixes() the directory based on hpx_prefix and the directory 
based on the library dir ?

Alex

_______________________________________________
hpx-users mailing list
[email protected]
https://mail.cct.lsu.edu/mailman/listinfo/hpx-users

Reply via email to