|
Boost Users : |
Subject: [Boost-users] can't initialize boost::filesystem::path
From: ahassaine_at_[hidden]
Date: 2008-11-08 08:12:14
Dear boot users,
I'm using boost 1.33 with Visual C++ 7.
I need to create an instance of boost::filesystem::path.
I tried :
> std::string dir="c:\\";
> boost::filesystem::path my_path(dir);
The compilation is successful but at the execution, I obtain a non handled
exception in the xstring file at the end of this function :
> void _Tidy(bool _Built = false,
> size_type _Newsize = 0)
> { // initialize buffer, deallocating any storage
> if (!_Built)
> ;
> else if (_BUF_SIZE <= _Myres)
> { // copy any leftovers to small buffer and deallocate
> _Elem *_Ptr = _Bx._Ptr;
> if (0 < _Newsize)
> _Traits::copy(_Bx._Buf, _Ptr, _Newsize);
> _Mybase::_Alval.deallocate(_Ptr, _Myres + 1);
> }
> _Myres = _BUF_SIZE - 1;
> _Eos(_Newsize);
> }
Any help is welcome.
Thanks in advance !
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net