+#include <msp/core/raii.h>
#include <msp/strings/format.h>
#include "dataerror.h"
#include "loader.h"
namespace {
-template<typename T>
-struct Set
-{
- T &ref;
- T orig;
-
- Set(T &r, const T &v): ref(r), orig(r) { r = v; }
- ~Set() { ref = orig; }
-};
-
bool signature_match(char s, char a)
{
if(s==a)
void Loader::load_statement(const Statement &st)
{
- Set<const Statement *> set_cst(cur_st, &st);
+ SetForScope<const Statement *> set_cst(cur_st, &st);
try
{