Hello. Currently I'm creating a text rpg, and I'm making containers to be used in the world, the problem is, I get errors when I try to compile and I have no idea why, these are the errors:
1 2 3
21 error: 'armor' was not declared in this scope
21 error: template argument 1 is invalid
21 error: template argument 2 is invalid
but for some reason, this is only with the armor vector, the weapons and potions vectors work fine.
You need to post the smallest possible complete program that illustrates your problem and then show the complete error messages. These messages have important information embedded within them to aid in locating and fixing the errors. For example the message should tell you the file and function where the error was detected.
Your container.h file should include the proper files that declare the armor, weapon, and potion classes.