自定义bvar类型, 出现数据丢失的情况
Open
- Dominant language
- C++
- Stars
- 17.6k
- Forks
- 4.1k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 69
Description
**Describe the bug (描述bug)**
自定义数据类型type A,
A 中包含 unordered_map>> a;
使用:
Adder add;
Window> win;
然后, win初始化为60s:
add << t; // 存数.
win.get_value(); // 取window中的数.
取出来的是:
[“string”, true, 0, 0]
后面两个int 会归零, 实际上不应该归零.
Contributor guide
Research direction
Reproduce the issue with the custom type A, Adder, and Window> using the 60-second window described. Start by tracing the Adder and Window entry points to find where the nested pair values are stored or retrieved. Done means win.get_value() preserves both integer values instead of returning zeros.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- observability
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100