u413-284-si / webserv

This project is about setting up a http web server, providing a static website.
MIT License
0 stars 0 forks source link

Remove definition of private copy constructors & assignment operators #45

Closed gwolf-011235 closed 3 weeks ago

gwolf-011235 commented 1 month ago

To make a class not copyable in C++98 we can declare the copy constructor and copy assignment operator as private in the header file. If there isn't even a definition in the source file they can't even be invoked in private context.

There are some definitions (mainly from me) of private copy constructors & assignment operators. If the class should never be copyable these should be removed.