No protection for including a view twice
Closed this issue · 1 comments
jamillosantos commented
When generated a C++ code of a view. It does not generate the #ifndef
/#define
schema for including twice protection.
#include <icarus/result.h>
#include <icarus/statuses.h>
namespace views
{
namespace templates
{
template <class T>
T &def(T &out, icarus::content &content)
{
/// ...
return out;
}
} // templates
} // views
jamillosantos commented
The BUGFIX generates the following code. Special attention for the first two and the last lines.
#ifndef VIEWS_application_def_HPP
#define VIEWS_application_def_HPP
#include <icarus/result.h>
#include <icarus/statuses.h>
namespace views
{
namespace application
{
template <class T>
T &def(T &out)
{
// ...
return out;
}
} // application
} // views
#endif // VIEWS_application_def_HPP