Is it optimal to create classes that inherit from std classes?
I have a small program that I've re-written from C that contains functions that accept either DIR* or FILE* to represent directory and file objects.
Now I want to use std::filesystem, but std::filesystem only contains the class directory_entry, which can either be a regular file, block file, directory..etc
I mean yeah sure, I can do checks before feeding them to functions and such stuff, but I want to make it clear and readable that this function explicitly accepts this file type.
I thought about maybe aliasing names, but still that doesn't affect the functionality, so I thought about creating classes that inherit from the std::filesystem::directory_entry class.
What do you think? and is there a better thing to do?
Thanks in advance.