cginternals / cginternals/libzeug

Improve Property constructors

Open
#4 2 comments 0 reactions 0 assignees View on GitHub
propertyzeug
Dominant language
C++
Stars
16
Forks
12
PR merge metrics
No merged PRs in 30d

Description

When you create a Property with an object pointer and two method pointers, which aren't declared in the same class (e.g. in a base class), the automatical type deduction fails.
So instead of
`Property("value", object, &Class::getter, &Class::setter)`
you have to write `Property("value", object, &Class::getter, &Class::setter)`

Contributor guide

No contributing guide indexed for this repository

Research direction

Search the repository for the Property constructors and the existing type-deduction tests or examples; start by reproducing the base-class getter/setter case from the issue. Done means the constructor can deduce the needed type for that case without explicitly writing Property, with existing behavior still covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.