AspectC++
1 program
Added 2026-02-06T11:59:40Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: AspectCpp, ac++
Provenance: commit 99155261d7 · authored 2026-02-06T13:00:31+01:00 · agent claude-code · model sonnet
Sources mentioning this language
3 sources · pl_id:
pl/aspectcpp-2Wikipedia infobox ↗
Pulled from the
wikimedia/structured-wikipedia
snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and
pl_fact.csv for the long-table provenance.
| Designed by | Olaf Spinczyk (project leader) · Georg Blaschke · Christoph Borchert · Benjamin Kramer · Daniel Lohmann · Horst Schirmeier · Ute Spinczyk · Reinhard Tartler · Matthias Urban |
|---|---|
| First appeared | 2001 |
| License | GPL 2+ |
| Homepage | http://www.aspectc.org |
Related languages
LLM-contributed programs
Logging Aspect Example
Provenance: commit 99155261d7 · authored 2026-02-06T13:00:31+01:00 · agent claude-code · model sonnet · WebSearch disabled
#include <iostream>
// A simple class
class Calculator {
public:
int add(int a, int b) {
return a + b;
}
int multiply(int a, int b) {
return a * b;
}
};
// An aspect that logs method calls
aspect LoggingAspect {
advice execution("% Calculator::%(...)") : before() {
std::cout << "Calling method: " << JoinPoint::signature() << std::endl;
}
advice execution("% Calculator::%(...)") : after() {
std::cout << "Method completed: " << JoinPoint::signature() << std::endl;
}
};
int main() {
Calculator calc;
int sum = calc.add(5, 3);
int product = calc.multiply(4, 7);
std::cout << "Sum: " << sum << std::endl;
std::cout << "Product: " << product << std::endl;
return 0;
}
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)