Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Construction and destruction?

Open
#6 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp
Domain
devtools

Research direction

The issue proposes construction, destruction, allocation, and deletion operations but names no source files or tests. Start by reading the linked Boost Lambda construction and destruction documentation, then inspect lambda2's existing operation patterns. Done means the proposed operations and their aggregate forms have an agreed design and corresponding coverage.

Written by the indexing model from the issue text.

Description

I propose to do it like in a boost.lambda. Additionally adding aggregate and new_aggregated_ptr:

constructor<T>()(arg_list)                      T(arg_list)
aggregate<T>()(arg_list)                        T{arg_list}
destructor()(a)                                 a.~A(), where a is of type A
destructor()(pa)                                pa->~A(), where pa is of type A*
new_ptr<T>()(arg_list)                          new T(arg_list)
new_aggregated_ptr<T>()(arg_list)               new T{arg_list}
new_array<T>()(sz, val_list)                    new T[sz]{val_list}
delete_ptr()(p)                                 delete p
delete_array()(p)                               delete[] p

https://www.boost.org/doc/libs/1_76_0/doc/html/lambda/le_in_details.html#lambda.construction_and_destruction

Dominant language
C++
Stars
25
Forks
16
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/lambda2

All issues in boostorg/lambda2

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.