Move some functions of OCF to private
authorLukas Jiriste <ljiriste@student.42prague.com>
Thu, 24 Oct 2024 08:03:17 +0000 (10:03 +0200)
committerLukas Jiriste <ljiriste@student.42prague.com>
Thu, 24 Oct 2024 08:09:23 +0000 (10:09 +0200)
commitd23b79b9bf2db28fd0e6465606bebe6d21f32a84
tree43276db81c1d885e1d4813936e5345c902099945
parent572b2cc3c3293bd68c7da2ffe21a45500cb37aaf
Move some functions of OCF to private

I was not sure whether the Orthodox Canonical Form dictates that the 4
functions be defined so I defined to be sure even though I did not think
it makes sense for Claptrap to have a copy constructor and assignment or
even a default constructor.
I learned that the methods only need to be present (in OCF), but need
not be usable. In C++11 I would delete the methods, in C++98 I have to
place the declaration inside private.
15 files changed:
ex00/ClapTrap.cpp
ex00/ClapTrap.h
ex00/main.cpp
ex01/ClapTrap.cpp
ex01/ClapTrap.h
ex01/ScavTrap.cpp
ex01/ScavTrap.h
ex01/main.cpp
ex02/ClapTrap.cpp
ex02/ClapTrap.h
ex02/FragTrap.cpp
ex02/FragTrap.h
ex02/ScavTrap.cpp
ex02/ScavTrap.h
ex02/main.cpp