Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/andreasfertig/programming-with-cpp20
/ main
Function
main
01.26-optional1/main.cpp:27–32 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
25
};
26
27
int main()
28
{
29
static_assert(
30
not std::is_copy_constructible_v<optional<NotCopyable>>);
31
static_assert(std::is_copy_constructible_v<optional<int>>);
32
}
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected