Skip to content

Commit

Permalink
[bugfix] fix compile in window error C2556 (#389)
Browse files Browse the repository at this point in the history
Co-authored-by: beggargangs <1178786295@qq.com>
  • Loading branch information
pujiangxin and beggargangs committed Jun 15, 2024
1 parent 999aef3 commit f5445de
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ Contributors:
- [PaPaPig-Melody](https://github.com/PaPaPig-Melody)
- [jiangliu123456](https://github.com/jiangliu123456)
- [PolarLinda6](https://github.com/PolarLinda6)
- [pujiangxin](https://github.com/pujiangxin)

感谢以上朋友,为CGraph项目做出的贡献,排名以贡献时间前后为顺序。
3 changes: 1 addition & 2 deletions src/GraphCtrl/GraphAspect/GAspectObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ GAspectObject::~GAspectObject() {
}


auto GAspectObject::setBelong(GElementPtr belong)
-> decltype(this) {
GAspectObjectPtr GAspectObject::setBelong(GElementPtr belong) {
CGRAPH_ASSERT_NOT_NULL_THROW_ERROR(belong)
CGRAPH_THROW_EXCEPTION_BY_CONDITION(!belong->isRegistered(), \
"[" + belong->getName() + "] can not add aspect for the reason of no register");
Expand Down
2 changes: 1 addition & 1 deletion src/GraphCtrl/GraphAspect/GAspectObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class GAspectObject : public GraphObject,
* @param belong
* @return
*/
auto setBelong(GElement* belong)-> decltype(this);
GAspectObject* setBelong(GElement* belong) ;

const std::string& getName() const override;

Expand Down

0 comments on commit f5445de

Please sign in to comment.