All pastes #453911 Raw Edit

Mine

public text v1 · immutable
·published 2007-04-23 09:13 UTC
rendered paste body
#
# old_revision [2dbb3ad115d10494b2841b26296275f92512c8f4]
#
# patch "cmd_key_cert.cc"
#  from [488ff4175a9c2b0cf85ed15fdf16071e60c60f44]
#    to [75c7f1f9de2b1c850deb13ea6a40a8a09c8eb008]
#
============================================================
--- cmd_key_cert.cc     488ff4175a9c2b0cf85ed15fdf16071e60c60f44
+++ cmd_key_cert.cc     75c7f1f9de2b1c850deb13ea6a40a8a09c8eb008
@@ -150,7 +150,8 @@ CMD(ssh_agent_export, N_("key and cert")
     cout << decoded_key;
   else
     {
-      ofstream fout(system_path(idx(args, 0)).as_external().c_str(), ofstream::out);
+      string path = system_path(idx(args, 0)).as_external();
+      ofstream fout(path.c_str(), ofstream::out);
       fout << decoded_key;
     }
 }


compile error:
gmake[2]: Entering directory `/home/tkoskine/src/monotone/obj-trunk'
if g++ -DLOCALEDIR=\"/usr/local/custom/share/locale\" -DHAVE_CONFIG_H -I. -I../t
runk -I.  -I../trunk/lua -I../trunk/sqlite -g -I/usr/local/include  -DNDEBUG -DB
OOST_DISABLE_THREADS -DBOOST_SP_DISABLE_THREADS -DBOOST_MULTI_INDEX_DISABLE_SERI
ALIZATION   -pthread -g -O2 -Wall -W -Wno-unused -fno-strict-aliasing -MT mtn-cm
d_key_cert.o -MD -MP -MF ".deps/mtn-cmd_key_cert.Tpo" -c -o mtn-cmd_key_cert.o `
test -f 'cmd_key_cert.cc' || echo '../trunk/'`cmd_key_cert.cc; \
then mv -f ".deps/mtn-cmd_key_cert.Tpo" ".deps/mtn-cmd_key_cert.Po"; else rm -f 
".deps/mtn-cmd_key_cert.Tpo"; exit 1; fi
../trunk/cmd_key_cert.cc: In member function `virtual void 
   commands::cmd_ssh_agent_export::exec(app_state&, const std::vector<utf8, 
   std::allocator<utf8> >&)':
../trunk/cmd_key_cert.cc:153: error: syntax error before `.' token
../trunk/cmd_key_cert.cc:154: error: no match for 'operator<<' in 'fout << 
   decoded_key'
../trunk/vocab_terms.hh:14: error: candidates are: std::ostream& 
   operator<<(std::ostream&, const external&)
../trunk/vocab_terms.hh:15: error:                 std::ostream& 
   operator<<(std::ostream&, const utf8&)
../trunk/vocab_terms.hh:16: error:                 std::ostream& 
   operator<<(std::ostream&, const ace&)
../trunk/vocab_terms.hh:17: error:                 std::ostream&
...