Mark the "literals" namespace as "inline"

Marshall Clow mclow.lists at
Sat Sep 28 12:39:56 PDT 2013

We raised an issue to LWG that the namespaces std::literals::string_literals and std::literals::chrono_literals should not be inline.
LWG resolved it as NAD (not a defect). Make libc++ match the standard. Add some tests to be sure.

-- Marshall

Marshall Clow     Idio Software   <mailto:mclow.lists at>

A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait).
        -- Yu Suzuki

-------------- next part --------------
A non-text attachment was scrubbed...
Name: inline-literals.patch
Type: application/octet-stream
Size: 7888 bytes
Desc: not available
URL: <>

More information about the cfe-commits mailing list