anchordict.h 1009 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef ANCHORDICT_H_62B23520_7C8E_11DE_8A39_0800200C9A66
  2. #define ANCHORDICT_H_62B23520_7C8E_11DE_8A39_0800200C9A66
  3. #if defined(_MSC_VER) || \
  4. (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || \
  5. (__GNUC__ >= 4)) // GCC supports "pragma once" correctly since 3.4
  6. #pragma once
  7. #endif
  8. #include <vector>
  9. #include "../anchor.h"
  10. namespace YAML {
  11. /**
  12. * An object that stores and retrieves values correlating to {@link anchor_t}
  13. * values.
  14. *
  15. * <p>Efficient implementation that can make assumptions about how
  16. * {@code anchor_t} values are assigned by the {@link Parser} class.
  17. */
  18. template <class T>
  19. class AnchorDict {
  20. public:
  21. void Register(anchor_t anchor, T value) {
  22. if (anchor > m_data.size()) {
  23. m_data.resize(anchor);
  24. }
  25. m_data[anchor - 1] = value;
  26. }
  27. T Get(anchor_t anchor) const { return m_data[anchor - 1]; }
  28. private:
  29. std::vector<T> m_data;
  30. };
  31. }
  32. #endif // ANCHORDICT_H_62B23520_7C8E_11DE_8A39_0800200C9A66
PANIC: session(release): write data/sessions/9/b/9ba16d1159947ae0: no space left on device

PANIC

session(release): write data/sessions/9/b/9ba16d1159947ae0: no space left on device
github.com/go-macaron/session@v0.0.0-20190805070824-1a3cdc6f5659/session.go:199 (0x8b2934)
gopkg.in/macaron.v1@v1.3.9/context.go:79 (0x83d0a0)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:157 (0x80ab07)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:135 (0x80a8a8)
gopkg.in/macaron.v1@v1.3.9/context.go:121 (0x83d1f8)
gopkg.in/macaron.v1@v1.3.9/context.go:112 (0x84fdb5)
gopkg.in/macaron.v1@v1.3.9/recovery.go:161 (0x84fda8)
gopkg.in/macaron.v1@v1.3.9/logger.go:40 (0x840c73)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:157 (0x80ab07)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:135 (0x80a8a8)
gopkg.in/macaron.v1@v1.3.9/context.go:121 (0x83d1f8)
gopkg.in/macaron.v1@v1.3.9/router.go:187 (0x850fc6)
gopkg.in/macaron.v1@v1.3.9/router.go:303 (0x8493e5)
gopkg.in/macaron.v1@v1.3.9/macaron.go:220 (0x841fca)
net/http/server.go:2836 (0x7a79b2)
net/http/server.go:1924 (0x7a341b)
runtime/asm_amd64.s:1373 (0x46f9f0)