Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read-Only Parameter Implementation #84

Open
tap opened this issue Feb 10, 2016 · 0 comments
Open

Read-Only Parameter Implementation #84

tap opened this issue Feb 10, 2016 · 0 comments

Comments

@tap
Copy link
Member

tap commented Feb 10, 2016

We have a need for Parameters that are Read-Only. For example, if we have some object that is doing mem allocation (lookahead buffer in the limiter, padding adjustment on a buffer, etc.) it should be fixed at the time that the object is instantiated.

These Parameters need to be settable in the ctor, e.g. by passing in N pairs of name and value. After that they should only be gettable.

We will also need a way to flag this readonly with a template parameter (so writing to it can be caught at compile time).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant