intel / intel/compile-time-init-build

Trouble understanding more complex use case

Open
#330 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
C++
Stars
648
Forks
63
Avg merge
4h 25m
Merged PRs (30d)
17

Description

Hi everyone,

thanks for the interesting library, I really appreciate the design concept and philosophy!

I'm struggling a bit however how one would build up a more complicated example which require additional dependencies (maybe closely related to this [issue](https://github.com/intel/compile-time-init-build/issues/71 )?). The examples I've seen are either using pure functions or utilize std::cout/global variables. I unfortunately can't seem to grasp the concept from the documentation, tests or the presentations but quite sure I'm missing something.

I don't believe passing them into the lambdas with captures would be possible due to func_ptr_t being a regular function pointer? Would I need to add depending types as a static members but then this would make testing/mocking individual parts quite difficult?

Thanks so much in advance!
Johannes

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the existing documentation, tests, and presentations, then read the related issue #71 for context on dependencies and captured lambdas. Determine whether the complex use case is supported and what example or explanation is missing; the documentation should make the dependency and testing approach understandable.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
embedded-iot
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.