| 1704 | } |
| 1705 | |
| 1706 | BOOST_FILESYSTEM_DECL std::locale path::imbue(std::locale const& loc) |
| 1707 | { |
| 1708 | #ifdef BOOST_FILESYSTEM_DEBUG |
| 1709 | std::cout << "***** path::imbue() called" << std::endl; |
| 1710 | #endif |
| 1711 | std::locale* p = replace_path_locale(loc); |
| 1712 | if (BOOST_LIKELY(p != nullptr)) |
| 1713 | { |
| 1714 | // Note: copying/moving std::locale does not throw |
| 1715 | std::locale temp(std::move(*p)); |
| 1716 | delete p; |
| 1717 | return temp; |
| 1718 | } |
| 1719 | |
| 1720 | return default_locale(); |
| 1721 | } |
| 1722 | |
| 1723 | namespace detail { |
| 1724 |
nothing calls this directly
no test coverage detected