Jump to content

error: unable to "<function-style-cast>" from "nullptr" into the "time_t"


gameboy
 Share

Recommended Posts

Today, I compiled the latest code SVN20067 with VS2013, and the following error occurred:

4 error C2440: error: unable to "<function-style-cast>" from "nullptr" into the "time_t" d:\trunk\source\lobby\XmppClient.h 157 1 lobby           62 error LNK1181: error cannot open input file "..\..\..\binaries\system\lobby.lib" D:\trunk\build\workspaces\vc2013\LINK pyrogenesis           64 error LNK1181: error cannot open input file "..\..\..\binaries\system\lobby.lib" D:\trunk\build\workspaces\vc2013\LINK test

Link to comment
Share on other sites

Index: source/lobby/XmppClient.h
===================================================================
--- source/lobby/XmppClient.h	(revision 20067)
+++ source/lobby/XmppClient.h	(working copy)
@@ -154,7 +154,7 @@
 		const std::string& property1_value = "",
 		const std::string& property2_name = "",
 		const std::string& property2_value = "",
-		const std::time_t time = std::time_t(nullptr));
+		const std::time_t time = std::time(nullptr));
 
 private:
 	/// Map of players

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...