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 ?


Related, later on in that loop, the subdirs "/bin" and "/lib" are hardcoded.
Could that be changed to use the result from dll.get_directory() directly 
instead of trying to reconstruct it ?

Alex

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

Reply via email to