Namespaces
Variants

std::filesystem::filesystem_error:: operator=

From cppreference.net
filesystem_error & operator = ( const filesystem_error & other ) noexcept ;
(desde C++17)

Asigna el contenido con el de other . Si * this y other tienen ambos el tipo dinámico std::filesystem::filesystem_error entonces std:: strcmp ( what ( ) , other. what ( ) ) == 0 después de la asignación.

Contenidos

Parámetros

otro - otro objeto filesystem_error para asignar

Valor de retorno

* this

Notas

Las implementaciones típicas almacenan path objetos referenciados por path1() y path2() en un almacenamiento con conteo de referencias. Como resultado, * this y other usualmente comparten sus path objetos después de la asignación.

Ejemplo