Am Sonntag, 23. Juli 2006 15:39 schrieb Lars Gullik Bjønnes: > Boost does this: > > bool path::is_complete() const > { > # ifdef BOOST_WINDOWS > return m_path.size() > 2 > && ( (m_path[1] == ':' && m_path[2] == '/') // "c:/" > || (m_path[0] == '/' && m_path[1] == '/') // "//share" > || m_path[m_path.size()-1] == ':' ); > # else > return m_path.size() && m_path[0] == '/'; > # endif > } > > > What you are saying is that "/foo/bar/" is not caught as an absolute > path in windows? Something wich strictly speaking is true, is is not > an absolute path. (Or at the very least it is not complete.)
On cygwin the latter would be complete, so if anything is to be changed then the code you showed above: On cygwin both tests should be used. Georg