У меня есть следующий, казалось бы, безобидный фрагмент кода:
#ifndef UI_H
#define UI_H
#include <string>
namespace ui
{
//Displays the main menu, showing loaded vocabulary cards
//
//Returns upon completion of display
void displayMainMenu();
//...More code like the above, just comments followed by functions
}
#endif
, который дает мне это сообщение об ошибке:
filepath/ui.h:6: error: expected unqualified-id before 'namespace'
Что я делаю не так здесь?