Re: New release of courier packages

Sam Varshavchik <[email protected]> Fri, 24 Oct 2025 08:08:45 -0400
Newsgroups gmane.mail.imap.courier.general
Message-ID <[email protected]>
Milan Obuch writes:

> > Try changing the line in question to read:
> >
> > 	typename rfc2045::entity::line_iter<crlf>::template headers<
> >
> > This part was tricky, trying to get this part to compile on all the
> > versions of gcc that were available to me.
> >
> > The current version compiles without any warnings on versions of gcc
> > starting from the current 15, and going back to gcc 10. Which
> > compiler are you using?
>
> FreeBSD uses clang, exact compiler version depends on OS version. On
> the box I did the test:
>
> # cc -v
> FreeBSD clang version 19.1.7 (https://github.com/llvm/llvm-project.git  
> llvmorg-19.1.7-0-gcd708029e0b2)
> Target: x86_64-unknown-freebsd14.3
> Thread model: posix
> InstalledDir: /usr/bin
>
> I'll test your proposal and report back my findings.

Ok, and I also got the following version to build on all relevant versions  
of gcc.

diff --git a/rfc2045/rfc2045.h b/rfc2045/rfc2045.h
index cb2c4183..4f5c0d20 100644
--- a/rfc2045/rfc2045.h
+++ b/rfc2045/rfc2045.h
@@ -3224,8 +3224,8 @@ void rfc822::mime_decoder<out_iter, src_type>::decode(

 	if (decode_header)
 	{
-		typename rfc2045::entity::line_iter<crlf>::headers<
-			src_type> parser{e, src	};
+		typename rfc2045::entity::template line_iter<crlf>
+			::template headers<src_type> parser{e, src };

 		parser.name_lc=header_name_lc;
 		std::string header;

_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQRupkKLJP96aW75pIOKYPgoojZS4gUCaPtsTQAKCRCKYPgoojZS
4gmYAQDEHzcfQyWlJGSqU8Cn3K7VMGUUGk6w5pKNgUvFWysiqAEAnQ8quMTHY+q/
fHzQ+6zdW1OWCh8xoq4zMrzm9X43kA4=
=OBK8
-----END PGP SIGNATURE-----