rejectedsoftware / vibenews

Combined web forum and NNTP server implementation for stand-alone newsgroups
GNU Affero General Public License v3.0
44 stars 3 forks source link

problem with formattedWrite to OutputStream #30

Closed ghost closed 9 years ago

ghost commented 9 years ago

Using DMD64 D Compiler v2.068.0:

/usr/include/dmd/phobos/std/range/primitives.d(335,9): Error: static assert  "Cannot put a const(char) into a OutputStream."
/usr/include/dmd/phobos/std/format.d(1451,20):        instantiated from here: put!(OutputStream, const(char))
/usr/include/dmd/phobos/std/format.d(3493,16):        instantiated from here: formatValue!(OutputStream, long, char)
/usr/include/dmd/phobos/std/format.d(470,54):        instantiated from here: formatGeneric!(OutputStream, long, char)
.dub/packages/vibenews-0.6.6/source/vibenews/news.d(415,22):        instantiated from here: formattedWrite!(OutputStream, char, long, string, string, string, string, string, long, long)
.dub/packages/vibenews-0.6.6/source/vibenews/news.d(395,53):        instantiated from here: __lambda3!(ulong, Article)
dmd failed with exit code 1.

Same error with fresh clone of master.

ghost commented 9 years ago

Hmm, same issue with gdc 4.9.2 (based on 2.066?):

/usr/include/d/4.9/std/range.d:699: error: undefined identifier format
/usr/include/d/4.9/std/range.d:699: error: static assert  __error
/usr/include/d/4.9/std/format.d:1342: note: instantiated from here: put!(OutputStream, const(char))
/usr/include/d/4.9/std/format.d:3066: note: instantiated from here: formatValue!(OutputStream, long, char)
/usr/include/d/4.9/std/format.d:427: note: instantiated from here: formatGeneric!(OutputStream, long, char)
vibenews-0.6.6/source/vibenews/news.d:415: note: instantiated from here: formattedWrite!(OutputStream, char, long, string, string, string, string, string, long, long)
vibenews-0.6.6/source/vibenews/news.d:395: note: instantiated from here: __lambda3!(ulong, Article)
gdc failed with exit code 1.