Jean-Marc Lasgouttes wrote: > Richard> Is it safe to use the create_symlink function from > Richard> boost::filesystems? Are there platforms on which we want LyX > Richard> to run that don't handle symlinks? > > Windows? >
So does this seems sensible? namespace { // A little helper for what follows // Throws fs::filesystem_error void forceSymlink(string const & target, string const & link) { if (fs::exists(link)) fs::remove(link); #ifdef _WIN32 fs::copy_file(target, link); #else fs::create_symlink(target, link); #endif } } Richard -- ================================================================== Richard G Heck, Jr Professor of Philosophy Brown University http://frege.brown.edu/heck/ ================================================================== Get my public key from http://sks.keyserver.penguin.de Hash: 0x1DE91F1E66FFBDEC Learn how to sign your email using Thunderbird and GnuPG at: http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto